class LittleGhost::ModelResponse
Represents the final result shared by every provider stream. It keeps provider-specific response shapes out of the agent loop.
Attributes
The normalized assistant Message.
Provider-specific response metadata with a frozen outer Hash. Nested values are retained and must not be mutated by callers.
The normalized reason the model stopped.
Provider-independent token usage for this response.
Public Class Methods
# File lib/little_ghost/model_response.rb, line 20
Coerces message to Message, normalizes stop_reason to a Symbol, and freezes the outer metadata Hash.