- provider
- OpenAI
- model
- gpt-4o
- temperature
- 0.7
- top_p
- 0.9
- maxSteps
- 20
### Message Tags
* `<system>` - System instructions
* `<user>` - User messages
* `<assistant>` - Assistant responses
* `<tool>` - Tool interaction results
* `<message role="...">` - Generic message tag
### Variables
{{ variable_name }} {{ variable || "default" }} {{ set myVar = "value" }}
### Conditionals
{{ if condition }} content {{ else }} alternative {{ endif }}
### Loops
{{ for item, index in items }} {{ index }}: {{ item }} {{ else }} No items {{ endfor }}
### Chains (Multi-step)
<step as="result"> First step content </step>
<step> Use {{ result }} from previous step </step>
### Tools Configuration
tools: - tool_name: description: What the tool does parameters: type: object properties: param_name: type: string description: Parameter description required: - param_name
### Agents
type: agent provider: OpenAI model: gpt-4o tools: - latitude/search agents: - agents/sub-agent-path maxSteps: 40
### Structured Output
schema: type: object properties: field_name: type: string description: Field description required: - field_name
### Prompt References (Snippets)
<prompt path="relative/path/to/prompt" /> <prompt path="shared/policies" variable={{ value }} />
### Content Types
<content-text>Plain text</content-text> <content-image>{{ image_url }}</content-image> <content-file mime="application/pdf">{{ file_data }}</content-file>
## How to Use
Read the `AGENTS.md` file for the complete detailed guide with all syntax explanations, examples, and best practices.
Each section contains:
* Detailed explanation of the feature
* Correct usage examples
* Common mistakes to avoid
* Best practices and tips