LlmMessageResponse

data class LlmMessageResponse(val message: Message, val textContent: String, val usage: Usage? = null, val thinkingBlocks: List<<Error class: unknown class>> = emptyList())

Framework-agnostic result of a single LLM inference call. Carries everything the model returned for that call: the answer message, optional usage stats, and thinking blocks.

Parameters

message

The full message object from the LLM

textContent

The text content of the message

usage

Optional token usage information

thinkingBlocks

Thinking blocks for this call. Initially populated with native blocks from com.embabel.agent.spi.support.springai.SpringAiNativeThinkingExtractor; merged with prompt-extracted blocks by com.embabel.agent.spi.support.ThinkingCapturingLlmMessageSender.

Constructors

Link copied to clipboard
constructor(message: Message, textContent: String, usage: Usage? = null, thinkingBlocks: List<<Error class: unknown class>> = emptyList())

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val thinkingBlocks: List<<Error class: unknown class>>
Link copied to clipboard
val usage: Usage? = null