Quick Start
How It Works
Simple
Agents: 1 — Single agent with vision capabilities analyzes video content.Workflow
- Receive video file
- Process frames with vision model
- Generate comprehensive analysis
Setup
Run — Python
Run — CLI
Run — agents.yaml
Serve API
Advanced Workflow (All Features)
Agents: 1 — Single agent with memory, persistence, structured output, and session resumability.Workflow
- Initialize session for video tracking
- Configure SQLite persistence for analysis history
- Analyze video with structured output
- Store results in memory for comparison
- Resume session for follow-up analysis
Setup
Run — Python
Run — CLI
Run — agents.yaml
Serve API
Monitor / Verify
Cleanup
Features Demonstrated
| Feature | Implementation |
|---|---|
| Workflow | Vision-based video analysis |
| DB Persistence | SQLite via memory_config |
| Observability | --verbose flag |
| Resumability | Session with session_id |
| Structured Output | Pydantic VideoAnalysis model |
Best Practices
Pass the video through the Task
Pass the video through the Task
Vision models read media from the
images=[...] field on a Task. A file path in the prompt text is invisible to the model.Use a vision-capable model
Use a vision-capable model
Set
llm="gpt-4o-mini" or another multimodal model. Text-only models cannot process video frames.Keep clips short for accurate summaries
Keep clips short for accurate summaries
Long videos dilute detail. Analyse in segments and combine results when you need frame-level accuracy across a full recording.
Return structured scenes for downstream indexing
Return structured scenes for downstream indexing
Add
output_pydantic with scenes and key_events so a search index or timeline UI can consume the output directly.Related
Analyze still images frame by frame.
Extract on-screen text with OCR.

