LLMMessage
API reference
A single message in an LLM conversation.
Implements Node
id: ID!
A unique identifier for this LLMMessage.
role: LLMMessageRole!
The role that produced this message.
content: [LLMContentBlock!]!
The message's content blocks, in the order the model produced them.
origin: LLMMessageOriginExperimental
Who put this message on the record, when it arrived through an agent mailbox.
Null for the user's own prompts and for everything the model or tools produced.
Experimental: Agent APIs are likely to change.
tokenUsage: LLMTokenUsage!
Token usage reported by the provider for the API call that produced this message; all zeros except on assistant responses.