LLM::OpenAI::Message::Response
Inherits LLM::OpenAI::Message < JSON::Serializable < Reference < Object
Represents a response message from the LLM
Constants
ROLE = "assistant"
Constructors
new(content : Nil | String, reasoning : Nil | String, tool_calls : Nil | Array(JSON::Any) = nil)
SourceInstance methods
content
Sourcecontent=(content : String | Nil)
Sourceinclude_reasoning=(include_reasoning : Bool)
If false don't include reasoning when resending this message to the model
reasoning
Sourcereasoning=(reasoning : String | Nil)
Sourcetool_calls
Sourcetool_calls=(tool_calls : Array(JSON::Any) | Nil)
Sourceusage
Sidecar to response message so we can keep the usage together with it.
Not serialized. Keeping this here as a convenience when parsing for now.
Ideally it would better if it was only in the MessagePlus wrapper.
usage=(usage : Usage | Nil)
Sidecar to response message so we can keep the usage together with it.
Not serialized. Keeping this here as a convenience when parsing for now.
Ideally it would better if it was only in the MessagePlus wrapper.