from pathlib import Pathfrom agno.agent import Agentfrom agno.media import Imagefrom agno.models.openai import OpenAIChatagent = Agent( model=OpenAIChat(id="gpt-5-mini"), id="image-to-text", name="Image to Text Agent", markdown=True, debug_mode=True, instructions=[ "You are an AI agent that can generate text descriptions based on an image.", "You have to return a text response describing the image.", ],)image_path = Path(__file__).parent.joinpath("sample.jpg")agent.print_response( "Write a 3 sentence fiction story about the image", images=[Image(filepath=image_path)], stream=True,)