struct

Gemini::Tool

Inherits JSON::Serializable < Struct < Value < Object

Tool details that the model may use to generate response.

API Reference

Constructors

new(function_declarations : Nil | Array(Gemini::FunctionDeclaration) = nil)
Source
new(*, __pull_for_json_serializable pull : JSON::PullParser)
Source

Instance methods

function_declarations

A list of FunctionDeclarations available to the model that can be used for function calling. (Optional)

Source
function_declarations=(function_declarations : Array(FunctionDeclaration) | Nil)

A list of FunctionDeclarations available to the model that can be used for function calling. (Optional)

Source