struct

OpenRouter::ToolFunction

Inherits JSON::Serializable < Struct < Value < Object

tool calls look like this: "tool_calls": [ { "id": "call_9pw1qnYScqvGrCH58HWCvFH6", "type": "function", "function": { "name": "get_current_weather", "arguments": "{ "location": "Boston, MA"}" } } ] Helper struct for the function part of a tool call

Constructors

new(name : String, arguments : String = "{}")
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

arguments
Source
arguments=(arguments : String)
Source
name
Source
name=(name : String)
Source