Type Alias: MessageJSON
@providerprotocol/ai / @providerprotocol/ai / MessageJSON
Type Alias: MessageJSON
Section titled “Type Alias: MessageJSON”MessageJSON =
Pick<Message,"id"|"type"|"metadata"> &object
Defined in: src/types/messages.ts:29
Message serialized to JSON format. Picks common fields from Message, converts timestamp to string.
Type Declaration
Section titled “Type Declaration”content
Section titled “content”content:
ContentBlock[]
results?
Section titled “results?”
optionalresults:ToolResult[]
timestamp
Section titled “timestamp”timestamp:
string
toolCalls?
Section titled “toolCalls?”
optionaltoolCalls:ToolCall[]