Graphorin API reference v0.7.0
Graphorin API reference / @graphorin/core / / toJsonSafeContentParts
Function: toJsonSafeContentParts()
ts
function toJsonSafeContentParts(parts): readonly WireMessageContent[];Defined in: packages/core/src/utils/binary-json.ts:293
Project multimodal content parts into their JSON-safe wire form. Text and reasoning parts pass through untouched.
Parameters
| Parameter | Type |
|---|---|
parts | readonly MessageContent[] |
Returns
readonly WireMessageContent[]