gemini-tool-calling

command
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 7 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL