Skip to main content

Function: declareChildRun()

declareChildRun<T>(tool): T

Defined in: packages/core/src/runtime/durable-tools.ts:143

Declare that a tool runs a child loop (a subagent): it gets no tool limit of its own, and its parent's loop needs childRecovery. Sets the tool's childRun declaration (ToolDurability.childRun), a plain property, so a host that wraps the tool as { ...tool, execute } keeps it. Returns the same tool.

Type Parameters​

T​

T extends object

Parameters​

tool​

T

Returns​

T