config.py 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. """
  2. 项目配置
  3. """
  4. from agent.core.runner import KnowledgeConfig, RunConfig
  5. # ===== Agent 运行配置 =====
  6. RUN_CONFIG = RunConfig(
  7. model="qwen3.5-plus",
  8. temperature=0.3,
  9. max_iterations=200,
  10. extra_llm_params={"extra_body": {"enable_thinking": True}},
  11. agent_type="main",
  12. name="工具调研测试(KM 通信)",
  13. knowledge=KnowledgeConfig(
  14. enable_extraction=False,
  15. enable_completion_extraction=False,
  16. enable_injection=False,
  17. owner="sunlit.howard@gmail.com",
  18. default_tags={"project": "new_search"},
  19. default_scopes=["org:cybertogether"],
  20. )
  21. )
  22. # ===== 任务配置 =====
  23. OUTPUT_DIR = "examples/new_search/outputs"
  24. # ===== 基础设施配置 =====
  25. SKILLS_DIR = "./skills"
  26. TRACE_STORE_PATH = ".trace"
  27. DEBUG = True
  28. LOG_LEVEL = "INFO"
  29. LOG_FILE = None
  30. # ===== 浏览器配置 =====
  31. BROWSER_TYPE = "local"
  32. HEADLESS = False
  33. # ===== IM 配置 =====
  34. IM_ENABLED = True
  35. IM_CONTACT_ID = "agent_research"
  36. IM_SERVER_URL = "ws://43.106.118.91:8105"
  37. IM_WINDOW_MODE = True
  38. IM_NOTIFY_INTERVAL = 10.0
  39. # ===== Knowledge Manager 配置 =====
  40. KNOWLEDGE_MANAGER_ENABLED = True
  41. KNOWLEDGE_MANAGER_CONTACT_ID = "knowledge_manager"