config.py 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. """
  2. 项目配置
  3. """
  4. from agent.core.runner import KnowledgeConfig, RunConfig
  5. # ===== Stage 1:调研配置 =====
  6. RESEARCH_RUN_CONFIG = RunConfig(
  7. model="qwen3.5-plus",
  8. temperature=0.3,
  9. max_iterations=1000,
  10. extra_llm_params={"extra_body": {"enable_thinking": True}},
  11. agent_type="main",
  12. name="工具调研与文档生成",
  13. knowledge=KnowledgeConfig(
  14. enable_extraction=False,
  15. enable_completion_extraction=True,
  16. enable_injection=False,
  17. owner="sunlit.howard@gmail.com",
  18. default_tags={"project": "tool_research", "domain": "ai_agent"},
  19. default_scopes=["org:cybertogether"],
  20. default_search_types=["tool", "guide"],
  21. default_search_owner="sunlit.howard@gmail.com"
  22. )
  23. )
  24. # ===== Stage 2:分析配置 =====
  25. ANALYSIS_RUN_CONFIG = RunConfig(
  26. model="anthropic/claude-sonnet-4-6",
  27. temperature=0.3,
  28. max_iterations=500,
  29. agent_type="coordinator",
  30. name="工作流分析 Pipeline",
  31. )
  32. ANALYSIS_MODEL = "anthropic/claude-sonnet-4-6"
  33. # ===== 输出目录 =====
  34. RESEARCH_OUTPUT_DIR = "examples/tool_research_v2/output" # Stage 1 输出根目录
  35. ANALYSIS_OUTPUT_DIR = "examples/tool_research_v2/output/analysis" # Stage 2 输出目录
  36. # ===== 基础设施配置 =====
  37. SKILLS_DIR = "./skills"
  38. TRACE_STORE_PATH = ".trace"
  39. DEBUG = True
  40. LOG_LEVEL = "INFO"
  41. LOG_FILE = None
  42. # ===== 浏览器配置 =====
  43. BROWSER_TYPE = "local"
  44. HEADLESS = False
  45. # ===== IM 配置 =====
  46. IM_ENABLED = True
  47. IM_CONTACT_ID = "agent_research"
  48. IM_SERVER_URL = "ws://43.106.118.91:8105"
  49. IM_WINDOW_MODE = True
  50. IM_NOTIFY_INTERVAL = 10.0