Unique identifier for the message
ID of the conversation this message belongs to
Message role in conversation
The text content of the message
Unix timestamp (milliseconds) when message was created
Optional modelLLM model used to generate this message (for assistant messages)
Optional usageToken usage statistics for this message
Optional toolTool/function calls made in this message
Optional toolID linking this message to a tool call response
Optional nameName field for tool/function messages
Optional metadataAdditional metadata for extensibility
Represents a single message within a conversation.
Follows OpenAI's chat completion message format for compatibility with LLM providers.
IConversationMessage
Example