Skip to main content

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.

tokenUsage: LLMTokenUsage!

Token usage reported by the provider for the API call that produced this message; all zeros except on assistant responses.

References

Returned by

Accepted as an argument by