Skip to content
providerkit
GitHub

Agent

Defined in: agents/src/types.ts:536

T is every possible completed output, including registered handoff chains.

Type Parameter Default type
T string
readonly id: string;

Defined in: agents/src/types.ts:538


readonly kind: "agent";

Defined in: agents/src/types.ts:537


readonly version: string;

Defined in: agents/src/types.ts:539

asTool(options): Delegation;

Defined in: agents/src/types.ts:544

Parameter Type
options SpecialistToolOptions<T>

Delegation


resume(snapshot, options): Promise<RunOutcome<T>>;

Defined in: agents/src/types.ts:543

Structural validation is not authorization. A host must authorize every resume.

Parameter Type
snapshot unknown
options ResumeOptions

Promise<RunOutcome<T>>


run(input, options?): Promise<RunOutcome<T>>;

Defined in: agents/src/types.ts:541

Invalid input throws a TypeError before anything is saved or loaded.

Parameter Type
input AgentInput
options? RunOptions

Promise<RunOutcome<T>>