class OpenRouter::Tool
- OpenRouter::Tool
- Reference
- Object
Defined in:
openrouter/types/tool.crConstructors
- .new(function : Function)
- .new(name : String, description : String | Nil = nil, parameters : Array(FunctionParameter) = [] of FunctionParameter)
Instance Method Summary
- #function : Function
- #function=(function : Function)
- #to_json(io : IO)
- #to_json(json : JSON::Builder)
- #type : String
- #type=(type : String)
Constructor Detail
def self.new(name : String, description : String | Nil = nil, parameters : Array(FunctionParameter) = [] of FunctionParameter)
#