Process video as input with Agno agents.
from pathlib import Path from agno.agent import Agent from agno.media import Video from agno.models.google import Gemini agent = Agent( model=Gemini(id="gemini-flash-latest"), markdown=True, ) # Please download "GreatRedSpot.mp4" using # wget https://storage.googleapis.com/generativeai-downloads/images/GreatRedSpot.mp4 video_path = Path(__file__).parent.joinpath("GreatRedSpot.mp4") agent.print_response("Tell me about this video", videos=[Video(filepath=video_path)])
Was this page helpful?