Quick Start
How It Works
Simple
Agents: 1 — Single agent for content generation with Markdown formatting.Workflow
- Receive content request
- Generate content with LLM
- Format output as Markdown
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 document tracking
- Configure SQLite persistence for content history
- Generate content with structured output
- Store in memory for iterative editing
- Resume session for document updates
Setup
Run — Python
Run — CLI
Run — agents.yaml
Serve API
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 Document model |
Best Practices
State the target format in the instructions
State the target format in the instructions
Tell the agent whether you want GitHub-flavoured Markdown, a changelog, or a README. A precise instruction produces consistent heading levels and code fences.
Use structured output for multi-section docs
Use structured output for multi-section docs
When a document has fixed sections, define a Pydantic schema so title, sections, and body arrive as separate fields you can render however you like.
Enable memory for iterative editing
Enable memory for iterative editing
Set
memory=True so the agent amends an existing draft on follow-up turns instead of regenerating the whole document.Save output to a file when generating docs at scale
Save output to a file when generating docs at scale
Attach a file-writing tool or set
output_file on a Task so generated Markdown lands on disk without manual copy-paste.Related
A minimal single-purpose agent for basic content generation.
Chain prompts to build multi-step documents.

