struct Gemini::FunctionDeclaration
- Gemini::FunctionDeclaration
- Struct
- Value
- Object
Overview
Structured representation of a function declaration as defined by the OpenAPI 3.03 specification.
Included Modules
- JSON::Serializable
Defined in:
gemini/function_calling.crConstructors
- .new(name : String, description : String, parameters : NamedTuple)
- .new(name : String, description : String, parameters : Nil | Gemini::Schema = nil)
- .new(pull : JSON::PullParser)
Instance Method Summary
-
#description : String
A brief description of the function.
-
#description=(description : String)
A brief description of the function.
-
#name : String
The name of the function.
-
#name=(name : String)
The name of the function.
-
#parameters : Schema | Nil
Describes the parameters to this function.
-
#parameters=(parameters : Schema | Nil)
Describes the parameters to this function.