Skip to content

Graphorin API reference v0.7.0


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

Interface: SerializedRunState

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

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:61
currentAgentIdreadonlystring-packages/agent/src/run-state/index.ts:62
error?readonly{ code: string; details?: unknown; message: string; }-packages/agent/src/run-state/index.ts:86
error.codereadonlystring-packages/agent/src/run-state/index.ts:86
error.details?readonlyunknown-packages/agent/src/run-state/index.ts:86
error.messagereadonlystring-packages/agent/src/run-state/index.ts:86
finishedAt?readonlystring-packages/agent/src/run-state/index.ts:85
handoffsreadonlyreadonly HandoffRecord[]-packages/agent/src/run-state/index.ts:69
idreadonlystring-packages/agent/src/run-state/index.ts:60
messagesreadonlyreadonly WireMessage[]-packages/agent/src/run-state/index.ts:67
pendingApprovalsreadonlyreadonly ToolApproval[]-packages/agent/src/run-state/index.ts:68
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:83
promotedTools?readonlyreadonly string[]AG-19: deferred tools promoted by tool_search this run.packages/agent/src/run-state/index.ts:75
sessionIdreadonlystring-packages/agent/src/run-state/index.ts:63
startedAtreadonlystring-packages/agent/src/run-state/index.ts:84
statusreadonlyRunStatus-packages/agent/src/run-state/index.ts:65
stepsreadonlyreadonly WireRunStep[]-packages/agent/src/run-state/index.ts:66
taintSummary?readonlyRunTaintSummaryAG-19: coarse data-flow taint summary (no untrusted text).packages/agent/src/run-state/index.ts:73
todos?readonlyreadonly TodoItem[]D6: journaled structured plan/todo list.packages/agent/src/run-state/index.ts:77
usagereadonlyUsage-packages/agent/src/run-state/index.ts:70
usageByModel?readonlyRunStateUsageByModel-packages/agent/src/run-state/index.ts:71
userId?readonlystring-packages/agent/src/run-state/index.ts:64
versionreadonly"graphorin-run-state/1.2"-packages/agent/src/run-state/index.ts:59