A single message in an LLM conversation.
Summary
Functions
The message's content blocks, in the order the model produced them.
A unique identifier for this LLMMessage.
The role that produced this message.
Token usage reported by the provider for the API call that produced this message; all zeros except on assistant responses.
Types
Functions
@spec content(t()) :: {:ok, [Dagger.LLMContentBlock.t()]} | {:error, term()}
The message's content blocks, in the order the model produced them.
A unique identifier for this LLMMessage.
@spec role(t()) :: {:ok, Dagger.LLMMessageRole.t()} | {:error, term()}
The role that produced this message.
@spec token_usage(t()) :: Dagger.LLMTokenUsage.t()
Token usage reported by the provider for the API call that produced this message; all zeros except on assistant responses.