Skip to content

配置参考

这页是 配置说明 的字段索引版。

顶层键

json
{
  "agents": {},
  "channels": {},
  "models": {},
  "gateway": {},
  "cron": {},
  "tools": {},
  "logging": {},
  "sentinel": {},
  "memory": {}
}

agents.defaults

字段作用
workspace工作区路径
model.primary默认模型引用,格式 provider/model
max_tokens默认 token 上限
temperature默认温度
max_tool_iterations工具迭代上限

agents.router

字段作用
enabled是否启用 router
main_agent_id主 agent ID
strategyrules_first / round_robin / manual
rules关键字派发规则
max_hops最大跳数
default_timeout_sec默认超时
sticky_thread_ownerthread owner 是否粘性

agents.communication

字段作用
mode协作模式
persist_threads是否持久化 threads
persist_messages是否持久化 messages
max_messages_per_thread单线程消息上限
dead_letter_queue是否启用死信队列
default_message_ttl_sec默认消息 TTL

agents.subagents.<id>

字段作用
enabled是否启用
typerouter / worker / reviewer / observer
transport当前默认文档化为 local
parent_agent_id父 agent
notify_main_policy主代理通知策略
display_name显示名称
role角色
description描述
system_prompt_fileprompt 文件
memory_namespace记忆命名空间
accept_from允许接收来源
can_talk_to允许通信对象
requires_main_mediation是否要求主代理中介
default_reply_to默认回复目标
tools.allowlist工具白名单
tools.denylist工具黑名单
tools.max_parallel_calls工具并发上限
runtime.*provider、重试、超时、长度限制等

models.providers.<name>

字段作用
api_keyAPI 密钥
api_baseAPI 基地址
models模型列表
supports_responses_compact是否支持 compact responses
authbearer / oauth / hybrid / none
timeout_sec超时秒数
runtime_persist是否持久化 provider runtime
runtime_history_fileruntime 历史文件
runtime_history_max历史上限
oauth.*OAuth 配置
responses.*responses 参数

gateway

字段作用
host监听地址
port监听端口
token网关访问令牌

当前 upstream 默认文档不再继续展开旧版 gateway.nodes.*

tools.mcp.servers.<name>

字段作用
enabled是否启用
transportstdio / http / streamable_http / sse
commandstdio 启动命令
argsstdio 启动参数
url远端 transport URL
working_dir工作目录
permissionworkspace / full
package安装包名