generative-ai-python

google.generativeai.types.Tool

A wrapper for protos.Tool, Contains a collection of related FunctionDeclaration objects, protos.CodeExecution object, and protos.GoogleSearchRetrieval object.

`code_execution`
`function_declarations`
`google_search_retrieval`

Methods

to_proto

View source

__call__

View source

Call self as a function.

__getitem__

View source