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