Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/core / / toJsonSafeRunState
Function: toJsonSafeRunState()
ts
function toJsonSafeRunState(state): WireRunState;Defined in: packages/core/src/utils/binary-json.ts:384
Project a full RunState into its JSON-safe WireRunState twin: messages and steps[].toolCalls[].outcome.contentParts go through the binary codec, everything else is copied structurally.
Parameters
| Parameter | Type |
|---|---|
state | | RunState | WireRunState |