Files
hz3-agent/config.yaml
黄庄三号 28da16829f feat: 支持 OpenClaw skill 格式 (SKILL.md + scripts/)
- scan_skills() 支持两种格式: .yaml 文件 和 目录/SKILL.md
- 解析 SKILL.md 的 YAML frontmatter 提取 name/description
- 自动扫描 scripts/ 子目录的 .py 脚本
- skill_exec 支持 asyncio 子进程执行脚本
- 新增示例 OpenClaw 技能: skills/time-tool/
2026-04-23 23:53:45 +08:00

37 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: ["是什么", "解释", "了解"]
time-tool: ["时间工具", "日期", "星期几"]