The tool behaviour. Tools are functions that agents can call.
Summary
Callbacks
Human-readable description.
Tool name for LLM function calling.
JSON Schema for parameters.
Execute the tool.
Functions
Check if a tool is a Gemini built-in (google_search, code_execution, etc).
Build a function declaration from a tool struct.
Types
Callbacks
Functions
Check if a tool is a Gemini built-in (google_search, code_execution, etc).
Built-in tools are sent to the Gemini API as native capability flags rather than function declarations.
Build a function declaration from a tool struct.