struct

OpenRouter::ToolCall

Inherits JSON::Serializable < Struct < Value < Object

Constructors

new(id : String, name : String, arguments : Array(ToolCallArgument) = [] of ToolCallArgument, type : String = "function")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

arguments
Source
function_data
Source
function_data=(function_data : ToolFunction)
Source
id=(id : String)
Source
name

Convenience getters that delegate to function_data

Source
type
Source
type=(type : String)
Source