class
OpenRouter::FunctionParameter
- OpenRouter::FunctionParameter
- Reference
- Object
Included Modules
- JSON::Serializable
Defined in:
openrouter/types/tool.crConstructors
- .new(name : String, type : String, description : String, required : Bool = false, items_type : String | Nil = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
- #description : String
- #description=(description : String)
- #items_type : String | Nil
- #items_type=(items_type : String | Nil)
- #name : String
- #name=(name : String)
- #required : Bool
- #required=(required : Bool)
-
#to_json(json : JSON::Builder)
Custom serialization for complex structure
- #type : String
- #type=(type : String)
Constructor Detail
def self.new(name : String, type : String, description : String, required : Bool = false, items_type : String | Nil = nil)
#