mirror of
https://github.com/YspCoder/clawgo.git
synced 2026-04-13 05:37:29 +08:00
Refine agent config schema and prompt file loading
This commit is contained in:
@@ -21,28 +21,30 @@
|
||||
"max_summary_chars": 6000,
|
||||
"max_transcript_chars": 20000
|
||||
},
|
||||
"runtime_control": {
|
||||
"intent_max_input_chars": 1200,
|
||||
"autolearn_max_rounds_without_user": 200,
|
||||
"execution": {
|
||||
"run_state_ttl_seconds": 1800,
|
||||
"run_state_max": 500,
|
||||
"tool_parallel_safe_names": ["read_file", "list_files", "find_files", "grep_files", "memory_search", "web_search", "repo_map", "system_info"],
|
||||
"tool_max_parallel_calls": 2,
|
||||
"system_summary": {
|
||||
"marker": "## System Task Summary",
|
||||
"completed_prefix": "- Completed:",
|
||||
"changes_prefix": "- Changes:",
|
||||
"outcome_prefix": "- Outcome:",
|
||||
"completed_title": "Completed Actions",
|
||||
"changes_title": "Change Summaries",
|
||||
"outcomes_title": "Execution Outcomes"
|
||||
}
|
||||
"tool_max_parallel_calls": 2
|
||||
},
|
||||
"summary_policy": {
|
||||
"marker": "## System Task Summary",
|
||||
"completed_prefix": "- Completed:",
|
||||
"changes_prefix": "- Changes:",
|
||||
"outcome_prefix": "- Outcome:",
|
||||
"completed_title": "Completed Actions",
|
||||
"changes_title": "Change Summaries",
|
||||
"outcomes_title": "Execution Outcomes"
|
||||
}
|
||||
},
|
||||
"router": {
|
||||
"enabled": true,
|
||||
"main_agent_id": "main",
|
||||
"strategy": "rules_first",
|
||||
"policy": {
|
||||
"intent_max_input_chars": 1200,
|
||||
"max_rounds_without_user": 200
|
||||
},
|
||||
"rules": [
|
||||
{
|
||||
"agent_id": "coder",
|
||||
@@ -73,7 +75,7 @@
|
||||
"type": "router",
|
||||
"display_name": "Main Agent",
|
||||
"role": "orchestrator",
|
||||
"system_prompt": "你负责消息路由、任务拆解、仲裁与结果汇总。",
|
||||
"system_prompt_file": "agents/main/AGENT.md",
|
||||
"memory_namespace": "main",
|
||||
"accept_from": ["user", "coder", "tester"],
|
||||
"can_talk_to": ["coder", "tester"],
|
||||
@@ -94,7 +96,7 @@
|
||||
"type": "worker",
|
||||
"display_name": "Code Agent",
|
||||
"role": "code",
|
||||
"system_prompt": "你负责代码实现与重构,输出具体修改建议和变更结果。",
|
||||
"system_prompt_file": "agents/coder/AGENT.md",
|
||||
"memory_namespace": "coder",
|
||||
"accept_from": ["main", "tester"],
|
||||
"can_talk_to": ["main", "tester"],
|
||||
@@ -117,7 +119,7 @@
|
||||
"type": "worker",
|
||||
"display_name": "Test Agent",
|
||||
"role": "test",
|
||||
"system_prompt": "你负责测试、验证、回归检查与风险反馈。",
|
||||
"system_prompt_file": "agents/tester/AGENT.md",
|
||||
"memory_namespace": "tester",
|
||||
"accept_from": ["main", "coder"],
|
||||
"can_talk_to": ["main", "coder"],
|
||||
|
||||
Reference in New Issue
Block a user