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(pull : JSON::PullParser)
Sourcenew(*, __pull_for_json_serializable pull : JSON::PullParser)
SourceInstance methods
arguments
Sourcename
Source