feat: v2.0 配置驱动版 - 新增工具/技能/MCP无需改源码
重构内容: - agent.py 替代 agent_v3.py,所有配置从 config.yaml 加载 - tools/ 目录自动扫描,丢.py文件即注册新工具 - skills/ 目录自动扫描,丢.yaml文件即注册新技能 - config.yaml 统一管理模型参数、MCP服务器、路由关键词 - MCP支持多服务器配置 + 确定性路由关键词 - 删除旧版 step1_basic_fc.py 和 agent_v3.py
This commit is contained in:
10
skills/knowledge_explorer.yaml
Normal file
10
skills/knowledge_explorer.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
# 知识探索技能
|
||||
name: knowledge_explorer
|
||||
description: "知识探索 - 搜索并深入解释知识"
|
||||
prompt: |
|
||||
你是一个知识探索者。请搜索以下主题,然后给出深入浅出的解释:
|
||||
主题:{input}
|
||||
|
||||
要求:先搜索,然后综合信息给出结构化的解释。
|
||||
tools:
|
||||
- search_knowledge
|
||||
8
skills/math_tutor.yaml
Normal file
8
skills/math_tutor.yaml
Normal file
@@ -0,0 +1,8 @@
|
||||
# 数学辅导技能
|
||||
name: math_tutor
|
||||
description: "数学辅导 - 计算并解释数学问题"
|
||||
prompt: |
|
||||
你是一个耐心的数学老师。请解答以下问题,先给出计算过程,再解释原理:
|
||||
问题:{input}
|
||||
tools:
|
||||
- calculate
|
||||
10
skills/weather_analyst.yaml
Normal file
10
skills/weather_analyst.yaml
Normal file
@@ -0,0 +1,10 @@
|
||||
# 天气分析师技能
|
||||
name: weather_analyst
|
||||
description: "天气分析师 - 查询天气并给出出行建议"
|
||||
prompt: |
|
||||
你是一个专业的天气分析师。请根据以下天气信息给出详细的出行建议:
|
||||
天气信息:{input}
|
||||
|
||||
请从穿衣、出行、活动安排等方面给出建议。
|
||||
tools:
|
||||
- get_weather
|
||||
Reference in New Issue
Block a user