js-bao-wss-client / WorkflowStepRunRecord
Interface: WorkflowStepRunRecord
A persisted step run record with debugging data
Properties
config?
optionalconfig?:unknown
Rendered step config (after template evaluation)
context?
optionalcontext?:unknown
Snapshot of input and previous step outputs at the time this step ran
durationMs?
optionaldurationMs?:number
endedAt?
optionalendedAt?:string
error?
optionalerror?:string|null
Error message if the step failed
errorDetails?
optionalerrorDetails?:unknown
Structured error details (stack trace, cause chain) if the step failed
input?
optionalinput?:unknown
Resolved input to the step
inputTokens?
optionalinputTokens?:number
output?
optionaloutput?:unknown
Output from the step
outputTokens?
optionaloutputTokens?:number
rawConfig?
optionalrawConfig?:unknown
Original step config before template rendering (for transform steps)
retryCount?
optionalretryCount?:number
runId
runId:
string
startedAt?
optionalstartedAt?:string
status
status:
string
running | completed | failed | skipped | error_captured.
Step rows are written as the run goes, so listing them on an in-flight run returns the steps finished so far plus a running row for the step executing right now. That row is finalized in place when the step ends — its endedAt / durationMs are placeholders while it is running.
stepId
stepId:
string
stepIndex
stepIndex:
number
stepKind
stepKind:
string
stepRunId
stepRunId:
string
templateWarnings?
optionaltemplateWarnings?:unknown
Template warnings captured during step execution
totalTokens?
optionaltotalTokens?:number