DelegationSpec
Defined in: agents/src/delegation.ts:183
Type Parameters
Section titled “Type Parameters”| Type Parameter |
|---|
I |
O |
Properties
Section titled “Properties”description
Section titled “description”description: string;Defined in: agents/src/delegation.ts:185
inputSchema
Section titled “inputSchema”inputSchema: JsonObjectSchema;Defined in: agents/src/delegation.ts:186
name: string;Defined in: agents/src/delegation.ts:184
needsApproval?
Section titled “needsApproval?”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
I |
context |
DelegationContext |
Returns
Section titled “Returns”Promise<O>
specialists
Section titled “specialists”specialists: readonly Specialist[];Defined in: agents/src/delegation.ts:190
Fixed allow-list. Agents cannot add tools or specialists at runtime.
summarize?
Section titled “summarize?”optional summarize?: (output) => string;Defined in: agents/src/delegation.ts:194
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
output |
O |
Returns
Section titled “Returns”string
validate
Section titled “validate”validate: (raw) => I;Defined in: agents/src/delegation.ts:188
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
raw |
unknown |
Returns
Section titled “Returns”I