Skip to main content
This example demonstrates how tools can receive and process images automatically through Agno’s joint media access functionality. It shows initial image upload and analysis, DALL-E image generation within the same run, and cross-run media persistence.

Code

image_input_for_tool.py

Usage

1

Create a virtual environment

Open the Terminal and create a python virtual environment.
2

Export your OpenAI API key

3

Set up PostgreSQL

4

Install libraries

5

Create a Python file

Create a Python file and add the above code.
6

Run Agent

7

Find All Cookbooks

Explore all the available cookbooks in the Agno repository. Click the link below to view the code on GitHub:Agno Cookbooks on GitHub