What is BAML?
BAML (Boundary AI Markup Language) is a domain-specific language for building type-safe LLM applications. It provides structured extraction with automatic validation and retry logic.Installation
Setup
1. Create BAML Files
Create your BAML schema inbaml_src/main.baml:
2. Configure Generator
Createbaml_src/generators.baml:
3. Generate Client
Basic Usage
Async Support
BAML async functions are fully supported:Complex Types
BAML excels at structured extraction with nested types:What Gets Captured
For each BAML call, RDK captures:Error Handling
BAML provides validation errors for malformed responses:See Also
- instrument_baml() — API reference

