diff --git a/docs/architecture.md b/docs/architecture.md index e3041acad3..93d431ada3 100644 --- a/docs/architecture.md +++ b/docs/architecture.md @@ -83,8 +83,7 @@ A **step** is one model request plus the tools it calls. A **turn** is zero or m ```text turn/start claim next-step input plus one queued message - snapshot Session model selection; resolve the step's conditional tools - assemble prompt sections + admitted tool schemas + snapshot Session model selection; assemble prompt sections + step-admitted tool schemas -> agent/pre-step; project runtime context at fallback reject | enter(messages, startsRequestSeries?) reject, or a first enter rewritten empty -> close the turn with no step diff --git a/docs/architecture.zh.md b/docs/architecture.zh.md index bf4c554698..687bf69911 100644 --- a/docs/architecture.zh.md +++ b/docs/architecture.zh.md @@ -87,8 +87,7 @@ AgentLoop 初始化 Agent,失败则回滚,并在启动已排队工作前等 ```text turn/start claim next-step input plus one queued message - snapshot Session model selection; resolve the step's conditional tools - assemble prompt sections + admitted tool schemas + snapshot Session model selection; assemble prompt sections + step-admitted tool schemas -> agent/pre-step; project runtime context at fallback reject | enter(messages, startsRequestSeries?) reject, or a first enter rewritten empty -> close the turn with no step diff --git a/docs/subsystems/tools.md b/docs/subsystems/tools.md index f0022fac4d..8d4992e519 100644 --- a/docs/subsystems/tools.md +++ b/docs/subsystems/tools.md @@ -202,6 +202,11 @@ interface ToolBatchInput { * Undefined for standalone calls outside an Agent, such as a service invocation. */ readonly agent?: Agent + /** + * Step admission for every call in the batch, including program subcalls. + * Undefined admits only unconditional registrations. + */ + readonly toolSet?: ResolvedToolSet /** * Committed model step receiving root call/result events; requires `agent`. * Undefined when `agent` is absent or for calls outside a model response, such diff --git a/docs/subsystems/tools.zh.md b/docs/subsystems/tools.zh.md index 9dec283f8d..43ff3465d3 100644 --- a/docs/subsystems/tools.zh.md +++ b/docs/subsystems/tools.zh.md @@ -202,6 +202,11 @@ interface ToolBatchInput { * Undefined for standalone calls outside an Agent, such as a service invocation. */ readonly agent?: Agent + /** + * Step admission for every call in the batch, including program subcalls. + * Undefined admits only unconditional registrations. + */ + readonly toolSet?: ResolvedToolSet /** * Committed model step receiving root call/result events; requires `agent`. * Undefined when `agent` is absent or for calls outside a model response, such