Skip to main content

Type Alias: SerializedMessage

SerializedMessage = object

Defined in: chat/src/schemas.ts:139

Serialized message type (for JSON storage) Now using OpenAI's ChatMessage format

Properties

content

content: string | MessageContentBlock[]

Defined in: chat/src/schemas.ts:141


metadata?

optional metadata?: Record<string, JsonValue>

Defined in: chat/src/schemas.ts:170


role

role: "system" | "user" | "assistant" | "tool" | "tool_approval"

Defined in: chat/src/schemas.ts:140


timestamp?

optional timestamp?: string

Defined in: chat/src/schemas.ts:169


tool_approval?

optional tool_approval?: object

Defined in: chat/src/schemas.ts:154

decision

decision: "approved" | "rejected" | "modified"

modifiedToolCalls?

optional modifiedToolCalls?: object[]

reason?

optional reason?: string

toolCalls

toolCalls: object[]


tool_call_id?

optional tool_call_id?: string

Defined in: chat/src/schemas.ts:143


tool_calls?

optional tool_calls?: object[]

Defined in: chat/src/schemas.ts:145

function

function: object

function.arguments

arguments: string

function.name

name: string

id

id: string

type

type: "function"