struct OpenRouter::ToolFunction

Overview

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

Included Modules

Defined in:

openrouter/types/tool_call.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

[View source]
def self.new(name : String, arguments : String = "{}") #

[View source]

Instance Method Detail

def arguments : String #

[View source]
def arguments=(arguments : String) #

[View source]
def name : String #

[View source]
def name=(name : String) #

[View source]