Table of contents · Learn the language, build agents, and integrate BAML into your applications.
The book is being published chapter by chapter. Linked chapters are available to read; the remaining titles show the planned outline.
For a working project, start with Get started.
Table of contents
I. Start
- Getting Started
- Building Your First Agent
II. The Language
- Common programming concepts
- Unions,
match, and Pushing Left - Classes, Enums, and Methods
- Namespaces and Project Structure
- Collections
- Handle errors
- Generics
- Lambdas and Iterators
- Interfaces
- Run work concurrently
- Logging, Tracing, and Pushing Right
- Testing
- The Standard Library
III. The AI Layer
- Prompts, Clients, and AI Functions
- Tools and Agents
- Tracing an Agent
- Sub-Agents and Background Workers
- Streaming
- Evals
IV. Going Deeper
- Patterns, matching, and destructuring
- Reflection and Dynamic Types
- Code Mode
V. The Coding Loop
- The Edit-Check Loop
- The Playground
VI. Crossing the Boundary
- Adopting BAML Incrementally
Capstone
- A Self-Improving Agent
Appendices
- A. Keywords
- B. Operators and Symbols
- C. Diagnostics Catalogue
- D. Standard Library Map
- E. CLI Reference
- F. Glossary