docs(subagent): rewrite the subagent data-structure doc for activations

wip: Chinese pair and remaining generated catalogs follow.
This commit is contained in:
Dudu-0223
2026-07-30 13:37:22 +08:00
committed by Tianyi Cui
parent 357f317b4c
commit 4e7a5f19cf
3 changed files with 162 additions and 137 deletions

View File

@@ -107,7 +107,8 @@ function registerCatalogSubagentProvider(ctx: Context, name: string): void {
capabilities: { outputSchema: true, depthLimit: true, toolFilter: true, persona: true },
inheritsParentContext: false,
start: () => Promise.reject(new Error('tool-catalog provider cannot start a child')),
resume: () => Promise.reject(new Error('tool-catalog provider cannot resume a child')),
// Declared so consumers configured for continuable background mode mount.
prepareContinuable: () => Promise.reject(new Error('tool-catalog provider cannot prepare a child')),
}
ctx.subagents.registerProvider(provider)
}