Skip to main content
This legacy example passes uploaded and DALL-E-generated images to tools through Agno’s joint media access and keeps the media across runs.
DALL-E models are deprecated. This DalleTools example is retained as a legacy reference and no longer runs against the current OpenAI API. Use OpenAITools with GPT Image 2 in Image Generation Agent.

Code

image_input_for_tool.py

Current Alternative

The source above uses removed DALL-E models and is preserved for reference. Follow Image Generation Agent for the current OpenAITools and GPT Image 2 pattern before adapting the image-tool and session-history flow.