Starter Kit - Ships with your template. You own it - modify freely.
Echo Agent
The echo agent returns its input unchanged, making it perfect for debugging data transformations and inspecting what data reaches an agent after flowing through your ensemble.Description
Returns input unchanged - useful for debugging flows and inspecting what data reaches an agent after transformations.Source
agents/debug/echo/echo.yaml
Input Schema
data field accepts any type - objects, strings, arrays, numbers, etc.
Output Schema
Configuration
Examples
Echo an Object
Echo a String
Debug Data Transformation
Use Cases
- Inspect Transformations: See exactly what data looks like after processing
- Validate Flow Logic: Confirm data reaches agents as expected
- Debug Type Issues: Check the JavaScript type of data
- Test Conditional Logic: Verify data before conditions evaluate
Delay Agent
The delay agent introduces artificial delays before returning, making it essential for testing timeout handling, loading states, concurrent execution, and rate limiting behavior.Description
Adds artificial delay before returning. Useful for testing timeout handling, loading states in UI, concurrent flow behavior, and rate limiting responses.Source
agents/debug/delay/delay.yaml
Input Schema
Output Schema
Configuration
Examples
Simple Delay
Delay with Data Passthrough
Test Timeout Handling
Test Concurrent Execution
Use Cases
- Test Timeouts: Verify timeout configuration works correctly
- Simulate Slow APIs: Test how your ensemble handles slow external services
- Loading State Testing: Test UI loading indicators
- Rate Limiting: Test behavior when services are rate-limited
- Concurrent Flow Testing: Understand parallel execution timing
- Retry Logic: Test backoff strategies with artificial delays
Inspect Context Agent
The inspect-context agent returns information about the current execution context, including auth state, headers, environment variables, and Cloudflare bindings.Description
Inspects and returns information about the current execution context. Useful for debugging auth propagation, headers, and environment variables.Source
agents/debug/inspect-context/inspect-context.yaml
Input Schema
Output Schema
Configuration
Examples
Basic Context Inspection
Full Inspection (Development Only)
Debug Auth Propagation
Safe Development Ensemble
Use Cases
- Debug Authentication: Verify auth tokens are propagated correctly
- Inspect Headers: Check what headers reach your ensemble
- Environment Validation: Confirm environment variables are set
- Binding Discovery: See what Cloudflare bindings are available
- Request Debugging: Understand the complete request context
- Integration Testing: Validate external service auth headers
Security Considerations
Recommended Protection Pattern
Common Debug Patterns
Pipeline Inspection
Insert echo agents between pipeline stages to inspect data transformations:Timeout Testing
Test different timeout scenarios systematically:Context Validation
Verify execution context before sensitive operations:Related Resources
Operations Reference
Learn about all available operations
Flow Control
Master conditions and flow patterns
Writing Ensembles
Handle failures and implement fallbacks
Testing & Observability
Write tests for your workflows

