config.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. """
  2. mini_restore 配置 — ToolHub 工具测试
  3. 精简版配置,仅用于测试 ToolHub 的搜索和调用流程。
  4. 不启用浏览器、知识管理等复杂功能。
  5. """
  6. from agent.core.runner import KnowledgeConfig, RunConfig
  7. # ===== Agent 运行配置 =====
  8. RUN_CONFIG = RunConfig(
  9. # 模型配置
  10. model="qwen3.5-plus",
  11. temperature=0.3,
  12. max_iterations=50,
  13. # 启用 thinking 模式
  14. extra_llm_params={"extra_body": {"enable_thinking": True}},
  15. # Agent 预设(对应 presets.json 中的 "main")
  16. agent_type="main",
  17. # 工具:仅 toolhub 相关
  18. tools=None,
  19. tool_groups=["core", "toolhub"],
  20. # 任务名称
  21. name="ToolHub 工具测试",
  22. # 知识管理配置
  23. knowledge=KnowledgeConfig(
  24. # 知识注入(关闭以避免 405 错误)
  25. enable_injection=False,
  26. )
  27. )
  28. # ===== 任务配置 =====
  29. INPUT_DIR = "examples/mini_restore/input"
  30. OUTPUT_DIR = "examples/mini_restore/output"
  31. # ===== 基础设施配置 =====
  32. SKILLS_DIR = "./skills"
  33. TRACE_STORE_PATH = ".trace"
  34. DEBUG = True
  35. LOG_LEVEL = "INFO"
  36. LOG_FILE = None