| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- """
- 项目配置
- 定义项目的运行配置。
- """
- from agent.core.runner import KnowledgeConfig, RunConfig
- # ===== Agent 运行配置 =====
- RUN_CONFIG = RunConfig(
- # 模型配置
- model="qwen/qwen3.5-397b-a17b",
- temperature=0.3,
- max_iterations=1000,
- # 任务名称
- name="Find Knowledge Agent",
- # 知识管理配置
- knowledge=KnowledgeConfig(
- # 压缩时提取
- enable_extraction=False,
- reflect_prompt="",
- # agent 运行完成后提取
- enable_completion_extraction=False,
- completion_reflect_prompt="",
- # 知识注入
- enable_injection=True,
- # 默认字段
- owner="ruotian.sun@outlook.com",
- default_tags={"project": "find_knowledge"},
- default_scopes=["org:cybertogether"],
- default_search_types=[],
- default_search_owner="ruotian.sun@outlook.com"
- )
- )
- # ===== 基础设施配置 =====
- SKILLS_DIR = "./skills"
- TRACE_STORE_PATH = ".trace"
- DEBUG = True
- LOG_LEVEL = "INFO"
- LOG_FILE = None # 设置为文件路径可以同时输出到文件
|