Agent
Defined in: agents/src/types.ts:536
T is every possible completed output, including registered handoff chains.
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
T |
string |
Properties
Section titled “Properties”readonly id: string;Defined in: agents/src/types.ts:538
readonly kind: "agent";Defined in: agents/src/types.ts:537
version
Section titled “version”readonly version: string;Defined in: agents/src/types.ts:539
Methods
Section titled “Methods”asTool()
Section titled “asTool()”asTool(options): Delegation;Defined in: agents/src/types.ts:544
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
SpecialistToolOptions<T> |
Returns
Section titled “Returns”resume()
Section titled “resume()”resume(snapshot, options): Promise<RunOutcome<T>>;Defined in: agents/src/types.ts:543
Structural validation is not authorization. A host must authorize every resume.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
snapshot |
unknown |
options |
ResumeOptions |
Returns
Section titled “Returns”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.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
AgentInput |
options? |
RunOptions |
Returns
Section titled “Returns”Promise<RunOutcome<T>>