Skip to content
providerkit
GitHub

DelegationSpec

Defined in: agents/src/delegation.ts:183

Type Parameter
I
O
description: string;

Defined in: agents/src/delegation.ts:185


inputSchema: JsonObjectSchema;

Defined in: agents/src/delegation.ts:186


name: string;

Defined in: agents/src/delegation.ts:184


optional needsApproval?: boolean;

Defined in: agents/src/delegation.ts:187


run: (input, context) => Promise<O>;

Defined in: agents/src/delegation.ts:193

Pure, deterministic coordination only: use child and join for work. This callback can replay after interruption; do not put external effects or mutable host state here.

Parameter Type
input I
context DelegationContext

Promise<O>


specialists: readonly Specialist[];

Defined in: agents/src/delegation.ts:190

Fixed allow-list. Agents cannot add tools or specialists at runtime.


optional summarize?: (output) => string;

Defined in: agents/src/delegation.ts:194

Parameter Type
output O

string


validate: (raw) => I;

Defined in: agents/src/delegation.ts:188

Parameter Type
raw unknown

I