struct Turquoise::Eloquent::Chat::Tool
- Turquoise::Eloquent::Chat::Tool
- Struct
- Value
- Object
Included Modules
- JSON::Serializable
Defined in:
turquoise/eloquent/api.crConstructors
- .new(name : String, description : String, parameters : NamedTuple(type: String, properties: Hash(String, NamedTuple(type: String, description: String)), required: Array(String)) = {type: "object", properties: {} of String => NamedTuple(type: String, description: String), required: [] of String})
- .new(pull : JSON::PullParser)
Instance Method Summary
- #description : String
- #description=(description : String)
- #name : String
- #name=(name : String)
- #parameters : {type: String, properties: Hash(String, {type: String, description: String}), required: Array(String)}
- #parameters=(parameters : NamedTuple(type: String, properties: Hash(String, NamedTuple(type: String, description: String)), required: Array(String)))
Constructor Detail
def self.new(name : String, description : String, parameters : NamedTuple(type: String, properties: Hash(String, NamedTuple(type: String, description: String)), required: Array(String)) = {type: "object", properties: {} of String => NamedTuple(type: String, description: String), required: [] of String})
#
Instance Method Detail
def parameters : {type: String, properties: Hash(String, {type: String, description: String}), required: Array(String)}
#
def parameters=(parameters : NamedTuple(type: String, properties: Hash(String, NamedTuple(type: String, description: String)), required: Array(String)))
#