struct OpenRouter::ToolCall
- OpenRouter::ToolCall
- Struct
- Value
- Object
Defined in:
openrouter/types/tool_call.crConstructors
-
.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"}" } } ]
Instance Method Summary
- #arguments : Array(ToolCallArgument)
- #id : String
- #name : String
- #to_json(io : IO)
- #to_json(json : JSON::Builder)
- #type : String
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"}" } } ]