Skip to main content
GeminiTools are a set of tools that allow an Agent to interact with Google AI API services for generating images and videos.

Prerequisites

Before using GeminiTools, make sure to have the google-genai and openai libraries installed and the credentials configured.
  1. Install dependencies:
  2. Set your credentials:
    • For Gemini API:
    • For Vertex AI:

Initialization

Import GeminiTools and add it to your Agent’s tool list.

Usage Examples

GeminiTools can be used for a variety of tasks. Here are some examples:

Image Generation

image_generation_agent.py

Video Generation

Video generation requires Vertex AI.
video_generation_agent.py

Toolkit Params

Toolkit Functions

Developer Resources