Skip to content

Latest commit

 

History

2 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

OpenAI Agents SDK + DeepSeek 多 Agent 示例

这是一个使用 OpenAI Agents SDK 和 DeepSeek API 构建的多 Agent 小项目。

功能

  • 分流 Agent 自动判断问题类型
  • 数学问题交给 Math Teacher
  • 历史问题交给 History Teacher
  • 数学 Agent 会调用 calculator 工具完成计算
  • 支持在终端交互式提问

工作流程

用户问题 → 分流助手 → 数学老师或历史老师 → 返回答案

数学问题还会经过:

用户问题 → 分流助手 → Math Teacher → calculator 工具

安装

创建并激活虚拟环境:

python3 -m venv .venv
source .venv/bin/activate

安装依赖:

python -m pip install -r requirements.txt

配置 DeepSeek API Key

复制配置示例:

cp .env.example .env

编辑 .env,填入自己的 Key:

DEEPSEEK_API_KEY=你的_DeepSeek_API_Key

不要把 .env 上传到 GitHub。

运行

python main.py

然后在终端输入数学或历史问题。

Project Notes

This repository contains my experiments with the OpenAI Agents SDK.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages