Skip to content
providerkit
GitHub

Workflow

Defined in: agents/src/workflow-types.ts:140

Type Parameter Default type
I unknown
O unknown
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


readonly version: string;

Defined in: agents/src/workflow-types.ts:143

asTool(options): Delegation;

Defined in: agents/src/workflow-types.ts:146

Parameter Type
options SpecialistToolOptions<O>

Delegation


resume(snapshot, options): Promise<WorkflowOutcome<O>>;

Defined in: agents/src/workflow-types.ts:145

Parameter Type
snapshot unknown
options WorkflowResumeOptions

Promise<WorkflowOutcome<O>>


run(input, options?): Promise<WorkflowOutcome<O>>;

Defined in: agents/src/workflow-types.ts:144

Parameter Type
input I
options? WorkflowRunOptions

Promise<WorkflowOutcome<O>>