This example demonstrates how to create an agent that uses DALL-E to generate images and maintains conversation history across multiple runs, allowing the agent to remember previous interactions and images generated.
from agno.agent import Agentfrom agno.db.sqlite import SqliteDbfrom agno.tools.dalle import DalleTools# Create an Agent with the DALL-E toolagent = Agent( tools=[DalleTools()], name="DALL-E Image Generator", add_history_to_context=True, db=SqliteDb(db_file="tmp/test.db"),)agent.print_response( "Generate an image of a Siamese white furry cat sitting on a couch?", markdown=True,)agent.print_response( "Which type of animal and the breed are we talking about?", markdown=True)