struct OpenRouter::ToolCall

Included Modules

Defined in:

openrouter/types/tool_call.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(id : String, name : String, arguments : Array(ToolCallArgument) = [] of ToolCallArgument, type : String = "function") #

[View source]
def self.new(pull : JSON::PullParser) #

[View source]

Instance Method Detail

def arguments : Array(ToolCallArgument) #

[View source]
def function_data : ToolFunction #

[View source]
def function_data=(function_data : ToolFunction) #

[View source]
def id : String #

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

[View source]
def name #

Convenience getters that delegate to function_data


[View source]
def type : String #

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

[View source]