Files
hz3-agent/config.yaml
黄庄三号 1c42ba0812 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
2026-04-23 23:16:08 +08:00

36 lines
1.3 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 黄庄三号四能力Agent 配置文件
# ================================
# 新增MCP服务器、调整路由关键词、修改模型参数都在这里
# 模型配置
llm:
base_url: "https://open.bigmodel.cn/api/paas/v4"
api_key: "2259e33a1357460abe17919aaf81e73d.K44a8LPQTmFM5PKm"
model: "glm-4.5-air"
# Agent行为参数
agent:
max_iterations: 5 # 最大迭代次数(防死循环)
think_temperature: 0.3 # 思考节点温度
skill_temperature: 0.7 # 技能节点温度
# MCP服务器配置
# 新增MCP服务器在列表中添加一项即可
mcp_servers:
- name: "hz3-tools"
command: "python3"
args: ["mcp_server.py"]
transport: "stdio"
# 路由关键词匹配到就通过MCP直接调用不依赖模型决策
route_keywords:
get_current_time: ["几点", "时间", "现在几点", "当前时间"]
count_chars: ["统计字符", "字符数", "字数统计", "统计文本"]
generate_uuid: ["生成uuid", "UUID", "uuid", "生成一个UUID"]
# Skill路由关键词
# 技能定义在 skills/ 目录的yaml文件中这里配置路由关键词
skill_keywords:
weather_analyst: ["天气", "出行", "穿什么"]
math_tutor: ["计算", "算", "数学", "等于多少"]
knowledge_explorer: ["是什么", "解释", "了解"]