Skip to main content

BAML Reference

Welcome to the BAML reference guide. Here you'll find documentation for every BAML keyword, feature, and setting.

SectionDescription
TypesBAML type system: primitives, classes, enums, unions
FunctionsFunction declarations and prompts
Prompt SyntaxJinja templating in prompts
ClientsLLM client configuration
AttributesType and field attributes
BAML CLICommand-line interface
Generated ClientRuntime SDK reference
Editor SettingsVSCode 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.

See Also​