from typing import Listfrom agno.agent import Agentfrom agno.media import Imagefrom agno.models.openai import OpenAIChatfrom pydantic import BaseModel, Fieldfrom rich.pretty import pprintclass MovieScript(BaseModel): name: str = Field(..., description="Give a name to this movie") setting: str = Field( ..., description="Provide a nice setting for a blockbuster movie." ) characters: List[str] = Field(..., description="Name of characters for this movie.") storyline: str = Field( ..., description="3 sentence storyline for the movie. Make it exciting!" )agent = Agent(model=OpenAIChat(id="gpt-5-mini"), output_schema=MovieScript)response = agent.run( "Write a movie about this image", images=[ Image( url="https://upload.wikimedia.org/wikipedia/commons/0/0c/GoldenGateBridge-001.jpg" ) ], stream=True,)for event in response: pprint(event.content)