config.py 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. tool_groups=["core", "browser", "content", "knowledge", "toolhub", "feishu", "im"],
  11. extra_llm_params={"extra_body": {"enable_thinking": True}},
  12. agent_type="main",
  13. name="工具调研测试(KM 通信)",
  14. knowledge=KnowledgeConfig(
  15. enable_extraction=False,
  16. enable_completion_extraction=False,
  17. enable_injection=False,
  18. owner="sunlit.howard@gmail.com",
  19. default_tags={"project": "new_search"},
  20. default_scopes=["org:cybertogether"],
  21. )
  22. )
  23. # ===== 任务配置 =====
  24. OUTPUT_DIR = "examples/new_search/outputs"
  25. # ===== 基础设施配置 =====
  26. SKILLS_DIR = "./skills"
  27. TRACE_STORE_PATH = ".trace"
  28. DEBUG = True
  29. LOG_LEVEL = "INFO"
  30. LOG_FILE = None
  31. # ===== 浏览器配置 =====
  32. BROWSER_TYPE = "local"
  33. HEADLESS = False
  34. # ===== IM 配置 =====
  35. IM_ENABLED = True
  36. IM_CONTACT_ID = "agent_research"
  37. IM_SERVER_URL = "ws://43.106.118.91:8105"
  38. IM_WINDOW_MODE = True
  39. IM_NOTIFY_INTERVAL = 10.0
  40. # ===== Knowledge Manager 配置 =====
  41. KNOWLEDGE_MANAGER_ENABLED = True
  42. KNOWLEDGE_MANAGER_CONTACT_ID = "knowledge_manager"