class RubyLLM::Message

A Message is a single entry in a chat conversation: a user prompt, an assistant reply, a system instruction, or a tool result. Chat#ask returns the model’s reply as a Message, and Chat#messages holds the transcript as an array of them.

response = chat.ask "What is the capital of France?"
response.role          # => :assistant
response.content       # => "The capital of France is Paris."
response.finish_reason # => "stop"

A Message also carries everything else the provider returned: token usage (tokens), reasoning output (thinking), source citations (citations), and requested tool calls (tool_calls).