config.py 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. """
  2. 项目配置
  3. 定义项目的运行配置。
  4. """
  5. from agent.core.runner import KnowledgeConfig, RunConfig
  6. # ===== Agent 运行配置 =====
  7. RUN_CONFIG = RunConfig(
  8. # 模型配置
  9. model="qwen/qwen3.5-397b-a17b",
  10. temperature=0.3,
  11. max_iterations=1000,
  12. # 任务名称
  13. name="Find Knowledge Agent",
  14. # 知识管理配置
  15. knowledge=KnowledgeConfig(
  16. # 压缩时提取
  17. enable_extraction=False,
  18. reflect_prompt="",
  19. # agent 运行完成后提取
  20. enable_completion_extraction=False,
  21. completion_reflect_prompt="",
  22. # 知识注入
  23. enable_injection=True,
  24. # 默认字段
  25. owner="ruotian.sun@outlook.com",
  26. default_tags={"project": "find_knowledge"},
  27. default_scopes=["org:cybertogether"],
  28. default_search_types=[],
  29. default_search_owner="ruotian.sun@outlook.com"
  30. )
  31. )
  32. # ===== 基础设施配置 =====
  33. SKILLS_DIR = "./skills"
  34. TRACE_STORE_PATH = ".trace"
  35. DEBUG = True
  36. LOG_LEVEL = "INFO"
  37. LOG_FILE = None # 设置为文件路径可以同时输出到文件