Simple
Agents: 1 — Single task requires only one agent.Workflow
- Receive input prompt
- Process with LLM
- Return generated content
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 with unique ID for resumability
- Configure SQLite persistence for conversation history
- Process input with structured Pydantic output
- Store results in memory for future context
- Resume session later with same session_id
Setup
Run — Python
Run — CLI
Run — agents.yaml
Serve API
Save Output to File
Save agent responses to files using different methods:- write_file Tool
- Task output_file
- Manual
Agent decides when to save:
Monitor / Verify
Cleanup
Features Demonstrated
| Feature | Implementation |
|---|---|
| Workflow | Single-step content generation |
| DB Persistence | SQLite via memory_config |
| Observability | --verbose flag |
| Resumability | Session with session_id |
| Structured Output | Pydantic BlogPost model |
Next Steps
- Prompt Chaining for multi-step workflows
- Web Search Agent for tool-enabled agents
- Memory for persistent context

