Quick Start
1
Basic Templates
2
Response Format
Template Types
Configuration Options
Template Variables
Templates support variable substitution:Available Variables
Common Patterns
Structured Output
Role-Based System
Chain-of-Thought
Disabling System Prompt
For some use cases, you may want to skip the system prompt:Template Inheritance
Templates combine with agent properties:Best Practices
Keep templates focused
Keep templates focused
Each template should have a clear purpose. Don’t overload the system template.
Use response templates for consistency
Use response templates for consistency
Define response formats to get predictable, structured outputs.
Test template combinations
Test template combinations
Variables are substituted at runtime - test with different agent configurations.
Document custom templates
Document custom templates
If using custom templates, document what variables are expected.
Related
Output
Display configuration
Structured Output
Pydantic output models

