Skip to content

Graphorin API reference v0.12.1


Graphorin API reference / @graphorin/agent / run-state / SerializedRunState

Interface: SerializedRunState

Defined in: packages/agent/src/run-state/index.ts:60

On-disk payload returned by serializeRunState and accepted by deserializeRunState. The shape is JSON-stable: binary message/tool-outcome payloads appear in their WireMessage / WireRunStep (base64 / href envelope) form.

Stable

Properties

PropertyModifierTypeDescriptionDefined in
agentIdreadonlystring-packages/agent/src/run-state/index.ts:63
currentAgentIdreadonlystring-packages/agent/src/run-state/index.ts:64
error?readonly{ code: string; details?: unknown; message: string; }-packages/agent/src/run-state/index.ts:90
error.codereadonlystring-packages/agent/src/run-state/index.ts:90
error.details?readonlyunknown-packages/agent/src/run-state/index.ts:90
error.messagereadonlystring-packages/agent/src/run-state/index.ts:90
finishedAt?readonlystring-packages/agent/src/run-state/index.ts:89
handoffsreadonlyreadonly HandoffRecord[]-packages/agent/src/run-state/index.ts:71
idreadonlystring-packages/agent/src/run-state/index.ts:62
messagesreadonlyreadonly WireMessage[]-packages/agent/src/run-state/index.ts:69
pendingApprovalsreadonlyreadonly ToolApproval[]-packages/agent/src/run-state/index.ts:70
pendingSubRuns?readonlyreadonly SerializedPendingSubRun[]W-001: parked sub-agent runs. Each child snapshot is itself a full SerializedRunState - version-stamped and secret-redacted recursively, to any nesting depth.packages/agent/src/run-state/index.ts:87
promotedTools?readonlyreadonly string[]AG-19: deferred tools promoted by tool_search this run.packages/agent/src/run-state/index.ts:77
sessionIdreadonlystring-packages/agent/src/run-state/index.ts:65
startedAtreadonlystring-packages/agent/src/run-state/index.ts:88
statusreadonlyRunStatus-packages/agent/src/run-state/index.ts:67
stepsreadonlyreadonly WireRunStep[]-packages/agent/src/run-state/index.ts:68
taintSummary?readonlyRunTaintSummaryAG-19: coarse data-flow taint summary (no untrusted text).packages/agent/src/run-state/index.ts:75
todos?readonlyreadonly TodoItem[]D6: journaled structured plan/todo list.packages/agent/src/run-state/index.ts:81
usagereadonlyUsage-packages/agent/src/run-state/index.ts:72
usageByModel?readonlyRunStateUsageByModel-packages/agent/src/run-state/index.ts:73
userId?readonlystring-packages/agent/src/run-state/index.ts:66
verdicts?readonlyRunVerdictsB3: per-turn security verdicts keyed by '<step>:<offset>'.packages/agent/src/run-state/index.ts:79
versionreadonly"graphorin-run-state/1.2"-packages/agent/src/run-state/index.ts:61