Workflow
Defined in: agents/src/workflow-types.ts:140
Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
I |
unknown |
O |
unknown |
Properties
Section titled “Properties”[AGENT_RUNTIME]
Section titled “[AGENT_RUNTIME]”readonly [AGENT_RUNTIME]: WorkflowRuntime<O>;Defined in: agents/src/workflow-types.ts:147
readonly id: string;Defined in: agents/src/workflow-types.ts:142
readonly kind: "workflow";Defined in: agents/src/workflow-types.ts:141
version
Section titled “version”readonly version: string;Defined in: agents/src/workflow-types.ts:143
Methods
Section titled “Methods”asTool()
Section titled “asTool()”asTool(options): Delegation;Defined in: agents/src/workflow-types.ts:146
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
options |
SpecialistToolOptions<O> |
Returns
Section titled “Returns”resume()
Section titled “resume()”resume(snapshot, options): Promise<WorkflowOutcome<O>>;Defined in: agents/src/workflow-types.ts:145
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
snapshot |
unknown |
options |
WorkflowResumeOptions |
Returns
Section titled “Returns”Promise<WorkflowOutcome<O>>
run(input, options?): Promise<WorkflowOutcome<O>>;Defined in: agents/src/workflow-types.ts:144
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
input |
I |
options? |
WorkflowRunOptions |
Returns
Section titled “Returns”Promise<WorkflowOutcome<O>>