struct Gemini::Tool

Overview

Tool details that the model may use to generate response.

API Reference

Included Modules

Defined in:

gemini/function_calling.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(function_declarations : Nil | Array(Gemini::FunctionDeclaration) = nil) #

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)