class OpenRouter::Tool

Defined in:

openrouter/types/tool.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(function : Function) #

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

[View source]

Instance Method Detail

def function : Function #

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

[View source]
def to_json(io : IO) #

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

[View source]
def type : String #

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

[View source]