Skip to main content
Pass media through the matching Agent.run() argument and choose a model that supports the input modality. The output_schema pattern stays the same.

Input argument per modality

All four classes accept url, filepath, or raw bytes via content. The cookbook examples fetch audio and video bytes first. Agno installs httpx.

Bounding boxes

For region detection, return normalized coordinates so the result is resolution-independent.
State the [0, 1] coordinate system in both the field descriptions and the agent instructions. This keeps the four values consistent across images.
The bounding boxes cookbook has runnable single-object, multi-object, and per-box confidence variants.

Transcription and diarization

Audio extraction covers transcription, speaker diarization, and timestamped segments. Each is a schema change over the same API.

Model choice

The cookbook uses gemini-3.5-flash across its text, image, audio, video, and PDF recipes. A replacement model must support the input modality and structured output.

Next steps

Developer Resources