WorkflowOutcome
type WorkflowOutcome<O> = object & | Exclude<RunState, { status: "running" | "completed" | "suspended";}> | { output: O; status: "completed";} | { requests: PendingRequest & object[]; status: "suspended"; wakeAt?: number;};Defined in: agents/src/workflow-types.ts:106
Type Declaration
Section titled “Type Declaration”attemptId
Section titled “attemptId”attemptId: string;runId: string;snapshot
Section titled “snapshot”snapshot: WorkflowSnapshot;steps: StepReceipt[];treeUsage
Section titled “treeUsage”treeUsage: TokenUsage;Type Parameters
Section titled “Type Parameters”| Type Parameter | Default type |
|---|---|
O |
unknown |