feat(sdk): support max output tokens
This commit is contained in:
@@ -21,7 +21,7 @@
|
||||
| `provider`(必填) | 提供方名称(`spawn`、`fork`、`acp` 等)。 |
|
||||
| `toolName` | 面向模型的名称,默认 `subagent`;每个已加载实例必须不同。 |
|
||||
| `enableRunInBackground` | 公开后台模式,默认 `true`;禁用时也会拒绝强制后台调用。 |
|
||||
| `agentOptions` | 默认子 agent 选项,目前包括 `model`。 |
|
||||
| `agentOptions` | 传给具体 provider 的子 agent `provider`、`model` 和正整数 `maxTokens`;进程内 provider 会用显式值覆盖继承的父级选项。 |
|
||||
| `persona` | 每个子 agent 独立的 persona;要求提供方具备 `persona` 能力。 |
|
||||
| `toolFilter` | 每个子 agent 独立的全局工具限制;要求提供方具备 `toolFilter` 能力。 |
|
||||
| `maxDepth` | 绝对委派深度上限,默认 `3`(`0` 禁止委派);数值上限要求 `depthLimit` 能力,缺失时挂载失败。对于预算由子 harness 拥有的进程外提供方,`'provider-managed'` 不发送上限。工具在达到上限时仍然可见;每次尝试启动都会检查调用 agent 的当前深度,被拒绝时返回出错的工具结果。 |
|
||||
|
||||
Reference in New Issue
Block a user