Overview
Thequickstart command creates ready-to-run example applications that demonstrate various agent patterns, workflows, and integrations. These examples are based on Anthropic’s “Building Effective Agents” paper and showcase practical implementations.
Usage
Available Examples
workflow
Demonstrates each pattern from Anthropic’s “Building Effective Agents” paper.chaining.py- Sequential agent workflowparallel.py- Parallel agent executionrouter.py- Dynamic agent routingorchestrator.py- Complex task orchestrationevaluator.py- Evaluator-optimizer patternhuman_input.py- Human-in-the-loop workflowfastagent.config.yaml- Configuration for workflowsshort_story.txt- Sample data
- Chaining workflows for sequential processing
- Parallel workflows for concurrent execution
- Router pattern for dynamic delegation
- Orchestrator pattern for task planning
- Evaluator-optimizer for quality iteration
- Human input integration
- fetch (for web content)
- filesystem (for file operations)
researcher
Research agent with web search and evaluation capabilities.researcher.py- Basic research agentresearcher-eval.py- Research with quality evaluationfastagent.config.yaml- Configuration with Brave Search
- Web search integration via Brave API
- Evaluator-optimizer workflow
- Quality assurance and refinement
- Report generation
- brave-search (requires API key)
- docker (for code execution)
data-analysis
Data analysis agent demonstrating statistical analysis and visualization.analysis.py- Data analysis agentfastagent.config.yaml- Configuration with MCP rootsmount-point/- Sample dataset directoryWA_Fn-UseC_-HR-Employee-Attrition.csv- HR dataset
- Dataset loading and exploration
- Statistical analysis
- Visualization generation
- MCP roots for file mapping
- filesystem (with mount-point mapping)
state-transfer
Demonstrates state passing between multiple agents.agent_one.py- First agent in sequenceagent_two.py- Second agent receiving statefastagent.config.yaml- Configurationfastagent.secrets.yaml.example- Secrets template
- State serialization and transfer
- Multi-agent coordination
- Context preservation
elicitations
Interactive forms using MCP elicitations feature.forms_demo.py- Basic forms examplegame_character.py- Character creator with formsgame_character_handler.py- Custom form handlertool_call.py- Elicitation via tool callselicitation_*.py- MCP server implementationsfastagent.config.yaml- Configurationfastagent.secrets.yaml.example- Secrets template
- Structured data collection
- AI-guided form workflows
- Custom form handlers
- Interactive dialogs
tensorzero
Complete TensorZero integration example with gateway and MCP server.agent.py- Interactive agentsimple_agent.py- Basic TensorZero agentimage_demo.py- Multi-modal functionalitydocker-compose.yml- Service orchestrationMakefile- Convenience commandsREADME.md- Setup instructionsmcp_server/- Custom MCP servertensorzero_config/- TensorZero configurationdemo_images/- Sample images
- TensorZero gateway integration
- Custom MCP server example
- Multi-modal support
- Docker-based deployment
toad-cards
Example agent and tool cards for Hugging Face Toad integration..fast-agent/directory with:agent-cards/- Agent definitionstool-cards/- Tool definitionsskills/- Agent skillsshared/- Shared contexthooks/- Workflow hooks
- ACP expert card
- MCP expert card
- HF search tool card
- Skill examples
Options
Directory where examples will be created. Most examples create a subdirectory.
Force overwrite existing files without prompting.
Examples
View Available Examples
Create Workflow Examples
Create Research Agent
Create Data Analysis Example
Custom Directory Location
Force Overwrite
Running Examples
After creating examples, run them withuv:
Workflow Patterns Explained
Chaining
Sequential execution where output of one agent feeds into the next.Parallel
Multiple agents process the same input concurrently, with optional aggregation.Router
Intelligent routing to the most appropriate agent based on input.Orchestrator
Planning and coordinating complex tasks across multiple agents.Evaluator-Optimizer
Iterative refinement with quality evaluation.Configuration After Creation
API Keys
Many examples require API keys. Add them to the createdfastagent.secrets.yaml:
MCP Servers
The createdfastagent.config.yaml includes necessary MCP server configurations:
Windows Considerations
For Windows users, some MCP servers require path adjustments:Next Steps by Example
After Creating workflow
- Review
chaining.pyfor basic workflow pattern - Explore other examples:
parallel.py- Run agents concurrentlyrouter.py- Dynamic agent selectionevaluator.py- Quality evaluation
- Run with:
uv run <example>.py - Try different models:
--model=<model>
After Creating researcher
- Get Brave API key from https://brave.com/search/api/
- Add key to
fastagent.secrets.yaml - Try basic version:
uv run researcher.py - Try eval version:
uv run researcher-eval.py
After Creating data-analysis
- Run:
uv run analysis.py - Dataset location:
mount-point/WA_Fn-UseC_-HR-Employee-Attrition.csv - On Windows: Edit
fastagent.config.yamlmount-point path
After Creating tensorzero
- Navigate to project:
cd tensorzero - Set up API keys:
cp .env.sample .env - Start services:
docker compose up --build -d - Run agent:
make agentoruv run agent.py
File Structure
Typical structure after quickstart:Troubleshooting
Missing Dependencies
MCP Server Issues
API Key Errors
File Exists Warning
--force to overwrite or manually remove existing files.
Related Commands
scaffold
Create basic project structure
go
Quickly test examples without files
check
Verify configuration after setup
Workflows Guide
Learn about workflow patterns
