class OpenRouter::Function

Defined in:

openrouter/types/tool.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def description : String | Nil #

[View source]
def description=(description : String | Nil) #

[View source]
def name : String #

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

[View source]
def parameters : Array(FunctionParameter) #

[View source]
def parameters=(parameters : Array(FunctionParameter)) #

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

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

[View source]