ec2b666284
Continuous Integration / Pre-commit Linter (push) Has been cancelled
Continuous Integration / Mypy Check (Python 3.10) (push) Has been cancelled
Continuous Integration / Mypy Check (Python 3.11) (push) Has been cancelled
Continuous Integration / Mypy Check (Python 3.12) (push) Has been cancelled
Continuous Integration / Mypy Check (Python 3.13) (push) Has been cancelled
Continuous Integration / Unit Tests (Python 3.10) (push) Has been cancelled
Continuous Integration / Unit Tests (Python 3.11) (push) Has been cancelled
Continuous Integration / Unit Tests (Python 3.12) (push) Has been cancelled
Continuous Integration / Unit Tests (Python 3.13) (push) Has been cancelled
Continuous Integration / Unit Tests (Python 3.14) (push) Has been cancelled
Continuous Integration / A2A v0.3 Tests (Python 3.10) (push) Has been cancelled
Continuous Integration / A2A v0.3 Tests (Python 3.11) (push) Has been cancelled
Continuous Integration / A2A v0.3 Tests (Python 3.12) (push) Has been cancelled
Copybara PR Handler / close-imported-pr (push) Has been cancelled
Continuous Integration / A2A v0.3 Tests (Python 3.13) (push) Has been cancelled
Continuous Integration / A2A v0.3 Tests (Python 3.14) (push) Has been cancelled
Multimodal Agent
Overview
This sample demonstrates a simple standalone agent that supports multimodal input and output. It uses the "nano banana model" (gemini-2.5-flash-image) that can understand and generate images directly.
Sample Inputs
-
An image of a banana with the question: "Is this banana ripe?" -
A text prompt: "Generate a picture of a banana split."
Graph
Since this is a simple standalone agent without tools, the flow is a direct interaction between the user and the agent:
graph TD
User -->|Sends Image + Text| Agent[Multimodal Agent]
Agent -->|Responds with Image + Text| User
How To
This sample demonstrates:
- Multimodal Input: The agent can process both text and image parts in the conversation history.
- Multimodal Output: The agent can generate images directly in its response.
To run this sample, ensure you have the necessary environment variables set for the Gemini client.