Skip to main content

Interface: DelegateToolOptions

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:76

Properties​

agentName?​

optional agentName?: string

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:90

The registered agent that works delegated tickets. Default delegate.


callerSkills?​

optional callerSkills?: readonly string[] | (() => readonly string[])

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:84

The skills the caller holds; a request may name only these.


callerTools?​

optional callerTools?: readonly string[] | (() => readonly string[])

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:82

The tools the caller holds; a request may name only these. Omit to allow any name the host accepts.


cleanupTimeoutMs?​

optional cleanupTimeoutMs?: number

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:103

How long to await cancellation before reporting unsettled cleanup. Default 30 seconds.


concurrency?​

optional concurrency?: object

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:99

Shared parent scope. Refuses excess in-turn children before construction.

leaseMs?​

optional leaseMs?: number

limit​

limit: number

scope​

scope: string

store​

store: SlotStore


createChild?​

optional createChild?: (request) => Processable<unknown, unknown> | Promise<Processable<unknown, unknown>>

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:80

Build the child for a request (wait: true).

Parameters​

request​

DelegationRequest

Returns​

Processable<unknown, unknown> | Promise<Processable<unknown, unknown>>


description?​

optional description?: string

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:97


maxBudgetUsd?​

optional maxBudgetUsd?: number

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:92

The most any one delegation may spend. Requests above it are refused; requests without a budget get it.


name?​

optional name?: string

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:96

Tool name. Default delegate.


orchestrator?​

optional orchestrator?: Orchestrator

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:88

For wait: false — where background delegations are filed and who works them.


parentAdmission?​

optional parentAdmission?: object

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:101

An admission received by the host in createChild; never model input.


presets?​

optional presets?: Readonly<Record<string, DelegatePreset>>

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:78

Named default briefs the model may start from (preset: '<name>').


price?​

optional price?: PriceStep

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:94

Price the child's steps for its budget (default: provider-reported cost only).


toolHooks?​

optional toolHooks?: readonly ToolHook[]

Defined in: packages/orchestration/src/delegate/delegate-tool.ts:86

The caller's gates, run inside the child on every tool it executes.