BAML
QuickstartPodcastTeamChangelogagent tries baml
DiscordGitHub8,423Learn BAML
Learn BAMLQuickstartPodcastTeamChangelogagent tries baml
DiscordGitHub8,423

BAML is the programming language for agents

Explore BAML→
microsoft/TypeScript
TypeScript Design Non-Goals
Orta edited this page on Feb 26, 2020 · 5 revisions

  1. 3.Apply a sound or "provably correct" type system. Instead, strike a balance between correctness and productivity.
Source: TypeScript Design Goals — Microsoft/TypeScript Wiki

What they meant was human productivity.
AI agents are a new paradigm that requires a new programming language, just like in the past:

  • Hardware→Assembly
  • Operating Systems→Java
  • Web→Javascript
  • Agentic Coding→BAML

BAML is a language designed to prevent context pollution and churn when coding with AI. Every feature opts to prevent mistakes at runtime (like Rust), while maintaining the dynamism necessary for writing and running code (like Python).

In one sentence: BAML feels like TypeScript, but with better error handling, no any, and more.