View source on GitHub |
A wrapper for protos.Tool
, Contains a collection of related FunctionDeclaration
objects.
google.generativeai.types.Tool(
function_declarations: Iterable[FunctionDeclarationType]
)
Attributes | |
---|---|
function_declarations
|
Methods
to_proto
to_proto()
__call__
__call__(
fc: protos.FunctionCall
) -> (protos.FunctionResponse | None)
Call self as a function.
__getitem__
__getitem__(
name: (str | protos.FunctionCall)
) -> (FunctionDeclaration | protos.FunctionDeclaration)