Skip to main content
Templates let you customize how agents construct their prompts - system instructions, user prompts, and response formats.

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

Each template should have a clear purpose. Don’t overload the system template.
Define response formats to get predictable, structured outputs.
Variables are substituted at runtime - test with different agent configurations.
If using custom templates, document what variables are expected.

Output

Display configuration

Structured Output

Pydantic output models