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?
optionalmetadata?: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?
optionaltimestamp?:string
Defined in: chat/src/schemas.ts:169
tool_approval?
optionaltool_approval?:object
Defined in: chat/src/schemas.ts:154
decision
decision:
"approved"|"rejected"|"modified"
modifiedToolCalls?
optionalmodifiedToolCalls?:object[]
reason?
optionalreason?:string
toolCalls
toolCalls:
object[]
tool_call_id?
optionaltool_call_id?:string
Defined in: chat/src/schemas.ts:143
tool_calls?
optionaltool_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"