BAML Reference
Welcome to the BAML reference guide. Here you'll find documentation for every BAML keyword, feature, and setting.
Quick Links
| Section | Description |
|---|---|
| Types | BAML type system: primitives, classes, enums, unions |
| Functions | Function declarations and prompts |
| Prompt Syntax | Jinja templating in prompts |
| Clients | LLM client configuration |
| Attributes | Type and field attributes |
| BAML CLI | Command-line interface |
| Generated Client | Runtime SDK reference |
| Editor Settings | VSCode extension settings |
Getting Started
If you're new to BAML, we recommend starting with the Tour for an interactive introduction, then exploring the Tutorials for guided examples.