MCP ExplorerExplorer

Openai Agents Chat Demo

@zzqfsyon 10 months ago
2 Apache-2.0
FreeCommunity
AI Systems
#chatbot#openai#openai-agents
openai agents chat demo. integration custom llm and mcp server and function tool

Overview

What is Openai Agents Chat Demo

openai-agents-chat-demo is a chat dialogue robot implemented based on the OpenAI Agents framework, integrating a custom LLM and MCP server with functional tools.

Use cases

Use cases include automating customer service inquiries, providing personalized educational assistance, creating engaging chatbots for websites, and enhancing user interaction in applications.

How to use

To use openai-agents-chat-demo, ensure you have Python 3.8+ and an OpenAI API key. Install dependencies using ‘pip install -r requirements.txt’, configure the settings in the config file, and run the application with ‘python app.py’. Access the chat bot at http://localhost:8050.

Key features

Key features include intelligent dialogue powered by the OpenAI Agents framework, support for custom tool function extensions, a user-friendly web interface for interaction, and management of conversation history and context.

Where to use

openai-agents-chat-demo can be used in various fields such as customer support, virtual assistants, educational tools, and any application requiring interactive dialogue systems.

Content

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/: 工具函数

Tools

No tools

Comments

Recommend MCP Servers

View All MCP Servers