class

Autobot::Providers::Response

Inherits JSON::Serializable < Reference < Object

Response from an LLM provider.

Constructors

new(content : Nil | String = nil, tool_calls : Array(Autobot::Providers::ToolCall) = [] of ToolCall, finish_reason : String = "stop", usage : Autobot::Providers::TokenUsage = TokenUsage.new, reasoning_content : Nil | String = nil, native_parts : Nil | Array(JSON::Any) = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

content
Source
error?
Source
finish_reason
Source
has_tool_calls?
Source
native_parts
Source
reasoning_content
Source
tool_calls
Source
usage
Source