JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
【回合】feat(config): 启用任务生命周期事件、工具延迟加载,并新增 max_tokens 兜底配置
white2025d23530718653
diff --git a/jiuwenswarm/resources/config.yaml b/jiuwenswarm/resources/config.yamlindex 3e4423237c..91b8fd31cc 100644--- a/jiuwenswarm/resources/config.yaml+++ b/jiuwenswarm/resources/config.yaml@@ -220,6 +220,11 @@ models:custom_headers: {}model_config_obj:temperature: 0.95+ # 该模型调用未显式指定 max_tokens 时的兜底值;+ # 走底层 ModelRequestConfig.max_tokens 回退链路(调用参数 > model_config_obj > 不限制)+ # 值取自环境变量 LLM_MAX_TOKENS+ # 未设置时回落 32768;jiuwenswarm 自身 .env 的同名变量优先级更高+ max_tokens: ${LLM_MAX_TOKENS:-32768}is_default: truevideo:model_client_config:@@ -440,14 +445,14 @@ react:agent_name: main_agentenable_task_loop: true# TaskExecutionRail: 发送 task.start/task.complete/task.update 生命周期事件。- enable_task_execution_rail: false+ enable_task_execution_rail: truemax_iterations: 100model_name: ${MODEL_NAME}skill_mode: all# ProgressiveToolRail: 工具延迟加载,固定 eager_tools schema,deferred 工具通过# tools_search → invoke_tool 间接调用,最大化 prefix cache 命中率。tool_lazy_load:- enabled: false # 总开关,默认关闭+ enabled: true # 总开关,默认关闭eager_tools: # 常驻可见工具列表- tools_search- invoke_tool