Documentation
¶
Overview ¶
@sk-task gemini-tool-calling#T4.2: gemini tool calling example
This example demonstrates Gemini provider features:
- Tool calling via agent crew (default)
- Real SSE streaming (--stream)
- Structured output / JSON schema (--schema)
- ToolChoice control (--toolchoice)
Prerequisites:
- GEMINI_API_KEY environment variable set
Usage:
GEMINI_API_KEY=... go run ./examples/gemini-tool-calling/ GEMINI_API_KEY=... go run ./examples/gemini-tool-calling/ --stream GEMINI_API_KEY=... go run ./examples/gemini-tool-calling/ --schema GEMINI_API_KEY=... go run ./examples/gemini-tool-calling/ --toolchoice
Click to show internal directories.
Click to hide internal directories.