Autobot::Providers::Response
Inherits JSON::Serializable < Reference < Object
Response from an LLM provider.
Constructors
new(pull : JSON::PullParser)
Sourcenew(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)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
content
Sourceerror?
Sourcefinish_reason
Sourcehas_tool_calls?
Sourcenative_parts
Sourcereasoning_content
Sourcetool_calls
Sourceusage
Source