GeminiTools are a set of tools that allow an Agent to interact with Google AI API services for generating images and videos.
Prerequisites
Before usingGeminiTools, make sure to have the google-genai and openai libraries installed and the credentials configured.
-
Install dependencies:
-
Set your credentials:
- For Gemini API:
- For Vertex AI:
- For Gemini API:
Initialization
ImportGeminiTools 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