BAML: A Programming Language Designed Specifically for AI Agents

techNmak · x · 2026-08-11

BAML (Basically A Made-up Language) is a programming language built specifically for AI agents, aiming to revolutionize traditional AI application development.

While most AI apps are written in Python or TypeScript, handling LLM calls usually relies on a fragile workflow: sending a prompt → hoping the model follows the schema → parsing JSON → validating → handling exceptions.

BAML's core concept is treating the LLM call as an actual typed function. Developers can define schemas like ExtractResume(resume: string) → Resume, specifying real fields, arrays, enums, and optional values. BAML then handles the model call and structured parsing, generating typed clients for existing applications.

Beyond that, BAML offers runtime type safety (no any or unchecked casts), typed errors, built-in tests/evals, and concurrency primitives.

Original post →

More from coding & agent

coding & agent channel →