struct OpenRouter::ToolCall

Defined in:

openrouter/types/tool_call.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(json : JSON::Any) #

tool calls look like this: "tool_calls": [ { "id": "call_9pw1qnYScqvGrCH58HWCvFH6", "type": "function", "function": { "name": "get_current_weather", "arguments": "{ "location": "Boston, MA"}" } } ]


[View source]

Instance Method Detail

def arguments : Array(ToolCallArgument) #

[View source]
def id : String #

[View source]
def name : String #

[View source]
def to_json(io : IO) #

[View source]
def to_json(json : JSON::Builder) #

[View source]
def type : String #

[View source]