Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Planning Agent

基于 Microsoft Agent Framework 的多 Agent 应用项目。

环境要求

  • Python 3.10+
  • uv 包管理器

安装依赖

uv sync

LLM 配置

通过环境变量配置 LLM 服务(可选,有默认值):

环境变量 说明 默认值
LLM_BASE_URL LLM 服务地址 http://192.168.100.231:10003/v1
LLM_API_KEY API 密钥 wangzongru
LLM_MODEL 模型名称 DeepSeek-R1

设置环境变量示例:

# Linux/macOS
export LLM_BASE_URL="http://your-server:port/v1"
export LLM_API_KEY="your-api-key"
export LLM_MODEL="your-model-name"

# Windows PowerShell
$env:LLM_BASE_URL="http://your-server:port/v1"
$env:LLM_API_KEY="your-api-key"
$env:LLM_MODEL="your-model-name"

运行示例

基础示例

uv run main.py

多 Agent 协作示例

uv run multi_agent_example.py

项目结构

planning-agent/
├── config.py                # LLM 配置模块(环境变量)
├── main.py                  # 基础示例:单 Agent 对话
├── multi_agent_example.py   # 多 Agent 协作示例
├── pyproject.toml           # 项目配置和依赖
├── uv.lock                  # 依赖锁定文件
└── README.md                # 项目说明

参考文档

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages