openai-agents-chat-demo

by zzqfsy

2 stars
363 downloads
Not rated
GitHub

About

openai agents chat demo. integration custom llm and mcp server and function tool

Details

Author
zzqfsy
GitHub stars
2
Downloads
363
Categories
AI

- Web-based chat interface
- Conversation history and context management
- Custom tool function integration
- Built on OpenAI Agents framework

Setting up with Highlight

This MCP is not yet compatible with Highlight’s one-click setup. However, you can still use it with Highlight by following these steps:

  1. Download and install Highlight from highlightai.com/download
  2. Navigate to the plugins tab and select "Add Custom Plugin"
  3. Configure the plugin with the settings below
    Plugin Name openai-agents-chat-demo
    Command (node, npx, python, etc.)

    Please refer to the README for specific instructions on how to obtain API keys or other required environment variables.

  4. Enable "Start Automatically" if you want the plugin to start when Highlight launches

From the repository

Install dependencies with pip install -r requirements.txt, then configure the settings in config.py. Run python app.py and access http://localhost:8050 to start using the chatbot.

Claude Desktop / Cursor

Paste into your MCP client config file to install this server.

{
    "mcpServers": {
        "openai-agents-chat-demo": {
            "openai-agents-chat-demo": {
                "command": "python",
                "args": [
                    "app.py"
                ]
            }
        }
    }
}

McpServers

{
    "openai-agents-chat-demo": {
        "command": "python",
        "args": [
            "app.py"
        ]
    }
}

openai-agents-chat-demo

openai agents chat demo. integration custom llm and mcp server and function tool

基于openai-agents框架实现的聊天对话机器人。

功能特点

- 使用OpenAI Agents框架实现智能对话
- 支持自定义工具函数扩展能力
- 提供简洁的Web界面进行交互
- 支持对话历史记录和上下文管理

安装与使用

环境要求

- Python 3.8+
- llm API密钥

安装依赖

pip install -r requirements.txt

配置

1. 查看config,进行自定义配置

运行

python app.py

访问 http://localhost:8050 开始使用聊天机器人。

项目结构

- app.py: Web应用主入口
- agent.py: 聊天代理实现
- config.py: 配置文件
- templates/: HTML模板
- static/: 静态资源文件
- utils/: 工具函数

No reviews yet — be the first

Sign in to leave a review

Use Google, GitHub, or an email account so ratings stay tied to real people.

Email sign in

No reviews posted yet.