Skip to content

Function: createAgentCapabilitiesBuilder() ​

ts
function createAgentCapabilitiesBuilder<TParentIn, THandle>(options?): AgentCapabilitiesBuilder<TParentIn, THandle>;

Defined in: builders/create-agent-capabilities-builder.ts:19

Creates a fluent AgentCapabilitiesBuilder for agent.capabilities($cap => ...).

Accumulates .fork(), .speculate(), .mutatePlan(), and .escalate() capability declarations using copy-on-write state snapshots and compiles them into a deeply frozen AgentCapabilitiesNode.

Type Parameters ​

Type ParameterDefault typeDescription
TParentInunknownParent actor input payload type.
THandleunknownIsolation scope handle type.

Parameters ​

ParameterTypeDescription
options?CreateAgentCapabilitiesBuilderOptions<TParentIn, THandle>Optional internal copy-on-write state.

Returns ​

AgentCapabilitiesBuilder<TParentIn, THandle>

Frozen capabilities builder.

Released under the MIT License.