Quick Start
How It Works
Simple
Agents: 1 — Single agent with vision capabilities analyzes images.Workflow
- Receive image (URL or local file)
- Process with vision model
- Generate detailed description
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 image analysis tracking
- Configure SQLite persistence for analysis history
- Analyze image 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 image analysis |
| DB Persistence | SQLite via memory_config |
| Observability | --verbose flag |
| Resumability | Session with session_id |
| Structured Output | Pydantic ImageAnalysis model |
Best Practices
Pass images through the Task, not the prompt
Pass images through the Task, not the prompt
Vision models read images from the
images=[...] field on a Task. Embedding file paths in the instruction text does nothing — the model never sees the pixels.Use a vision-capable model
Use a vision-capable model
Set
llm="gpt-4o-mini" or another multimodal model. Text-only models silently ignore the image and describe nothing.Request structured output for pipelines
Request structured output for pipelines
When results feed a database or UI, add
output_pydantic so objects, scene, and colours arrive as typed fields instead of free text.Reach for a specialised agent when you need OCR or generation
Reach for a specialised agent when you need OCR or generation
For text extraction use the Image to Text Agent; to create new images from prompts use the Image generation flow rather than this analysis agent.
Related
Extract text from images with an OCR-focused agent.
Analyze video content frame by frame.

