struct Gemini::Tool
- Gemini::Tool
- Struct
- Value
- Object
Overview
Tool details that the model may use to generate response.
Included Modules
- JSON::Serializable
Defined in:
gemini/function_calling.crConstructors
- .new(pull : JSON::PullParser)
- .new(function_declarations : Nil | Array(Gemini::FunctionDeclaration) = nil)
Instance Method Summary
-
#function_declarations : Array(FunctionDeclaration) | Nil
A list of
FunctionDeclarations
available to the model that can be used for function calling. -
#function_declarations=(function_declarations : Array(FunctionDeclaration) | Nil)
A list of
FunctionDeclarations
available to the model that can be used for function calling.
Constructor Detail
Instance Method Detail
def function_declarations : Array(FunctionDeclaration) | Nil
#
A list of FunctionDeclarations
available to the model that can be used for function calling. (Optional)
def function_declarations=(function_declarations : Array(FunctionDeclaration) | Nil)
#
A list of FunctionDeclarations
available to the model that can be used for function calling. (Optional)