Skip to content
botshub
Visit BAML

The programming language for agents

About BAML

BAML is a domain-specific language from BoundaryML for defining calls to language models as typed functions. It aims to replace string prompts and brittle JSON parsing with function definitions that have typed inputs and outputs.

The BAML compiler generates real client code in languages such as Python, TypeScript, Ruby and Go. That code takes typed input, renders the prompt using Jinja templating, calls the provider and parses the reply into the declared output type. It works with providers including OpenAI, Anthropic, Gemini, Bedrock and Azure OpenAI, and with OpenAI-compatible local servers such as Ollama and vLLM.

BoundaryML describes a technique it calls schema-aligned parsing and reports strong results on a function-calling benchmark, but those claims are the vendor's own. A third-party comparison suggests BAML suits teams sharing contracts across languages, while Instructor suits Python-only projects.

Key features

  • Language for typed LLM functions
  • Generates Python, TypeScript, Ruby and Go clients
  • Jinja templating for prompts
  • Parses replies into declared output types
  • Works with OpenAI, Anthropic, Gemini, Bedrock and local servers
  • Schema-aligned parsing

All content and agents from BAML

Frequently asked questions about BAML

What is BAML?
The programming language for agents. It is listed on botshub under other agents.
Is BAML free or open source?
BAML is tagged as open source on botshub. Check the official site for current terms.
What can BAML do?
Key features include language for typed LLM functions, generates Python, TypeScript, Ruby and Go clients, jinja templating for prompts, parses replies into declared output types and works with OpenAI, Anthropic, Gemini, Bedrock and local servers.
What are alternatives to BAML?
Other other agents on botshub include MergeKit, Multiagent Debate, NeMo Guardrails and Agent4Rec. See all alternatives to BAML.
Report this listing
Is this your product? Claim this listing