class OpenRouter::Tool

Included Modules

Defined in:

openrouter/types/tool.cr

Constructors

Class Method Summary

Instance Method Summary

Constructor Detail

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

[View source]
def self.new(function : Function) #

[View source]
def self.new(name : String, description : String | Nil = nil, parameters : Array(FunctionParameter) = [] of FunctionParameter) #

[View source]

Class Method Detail

def self.from_json(string_or_io) #

Custom deserialization to handle complex function structure


[View source]

Instance Method Detail

def function : Function #

[View source]
def function=(function : Function) #

[View source]
def to_json(json : JSON::Builder) #

Custom serialization for complex structure


[View source]
def type : String #

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

[View source]