Skip to content

Function: createSpeculateCapabilityBuilder() ​

ts
function createSpeculateCapabilityBuilder<TParentIn, THandle>(toolName): SpeculateCapabilityBuilder<TParentIn, unknown, unknown, unknown, THandle, unknown, unknown, unknown>;

Defined in: builders/create-speculate-capability-builder.ts:18

Creates a fluent SpeculateCapabilityBuilder for cap.speculate(toolName, $s => ...).

Validates that toolName is a non-empty identifier and returns an immutable builder for configuring N-branch speculative tournaments.

Type Parameters ​

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

Parameters ​

ParameterTypeDescription
toolNamestringName of the synthesized speculation tool exposed to the parent agent.

Returns ​

SpeculateCapabilityBuilder<TParentIn, unknown, unknown, unknown, THandle, unknown, unknown, unknown>

Frozen speculate capability builder.

Released under the MIT License.