Boundary

HomeBlogPodcastTeam
DocsStar on GitHub
2,107
Tue, Aug 12 @ 5:00 PM UTC
πŸ¦„ ai that works: decoding context engineering lessons from Manus

The First Language for Building Agents

Typescript made JavaScript 10x more reliable.
BAML makes your ai pipelines 10x more reliable.

uv add baml-py && uv run baml-cli init
Get Started

Works with every LLM provider

OpenAI
Anthropic
Google
Microsoft
Meta

And every language

Typescript
Python
Go
Ruby
Java
BAML Lamb Logo
Baaaaaaaaaaml

Basically A Made-Up Language

Trusted by developers at
Aer Compliance
PMMI
Product Hunt
SAP
AI Tinkerers
Cerebral Valley
Vetrec

Complete Development Workflow

Discover how BAML transforms AI development in four easy steps

Define your prompts functions

Yes, Cursor, Claude, already know BAML.
Yes, we made a whole VSCode extension for BAML.

Test your prompts functions

Do it in VSCode, or the editor of your choice. Or in CI/CD with baml-cli test

Call your prompts functions from any programming language you love

baml-cli generate
converts BAML functions to native functions in

Python

main.py β€” Python β€” Visual Studio Code
1
2
3
4
5
6
from baml_client import b

result = b.AnalyzeCodebase("<html>...</html>")

print(result)

Deploy your Agent

Do nothing special for BAML. Since BAML generates native code in your language of choice, you can use it in any way you want.
Multi-Cloud Deployment0%
AWS Lambda
Vercel
Google Cloud
Azure Functions
Railway

Empower Your AI Development

Build AI applications with type safety, generate TypeScript types, and validate your schemas.

resume.baml
class Resume {
  name string
  title string
}

function ExtractResume(resume: string) -> Resume
resume = b.ExtractResume(resume)
print(resume.education)
Error iconProperty 'education' does not exist on type 'Resume'.

Type-Safe AI Interfaces

Define AI interfaces with confidence. Write BAML schemas that generate TypeScript types automatically.

Extract the person's name and job title from this resume text...

User Avatar
Baml

Structured Outputs

Get type-safe, validated responses from any LLM. Support for JSON, XML, YAML, and more output formats.

βœ… Testing ResumeParser...
βœ… Testing SentimentAnalyzer...
βœ… Testing CodeReviewer...
βœ… All Agents tested successfully

Test Your Agents in CI/CD

Test your agents in CI/CD pipelines to ensure they are working as expected.

10:0010:0110:0210:0310:04
10:00 AM

Automatic Retry and Fallback

Automatically retry failed requests and provide fallback responses when errors occur.

People love BAML

And so do agents

BAML is amazing. I've used it in Python and Typescript. It's a game changer.

Adam Gitzes

Adam Gitzes

Amazon

Just set up baml for my project, 10/10 experience and much faster than langchain.

Jason Fan

Jason Fan

Finic.ai

It's amazing!! Was able to cut down my tokens and time-to-first-token significantly without compromising results.

Ray del Vecchio

Ray del Vecchio

Cerebral Valley

BAML is amazing. I've used it in Python and Typescript. It's a game changer.

Adam Gitzes

Adam Gitzes

Amazon

Just set up baml for my project, 10/10 experience and much faster than langchain.

Jason Fan

Jason Fan

Finic.ai

It's amazing!! Was able to cut down my tokens and time-to-first-token significantly without compromising results.

Ray del Vecchio

Ray del Vecchio

Cerebral Valley

BAML is amazing. I've used it in Python and Typescript. It's a game changer.

Adam Gitzes

Adam Gitzes

Amazon

Just set up baml for my project, 10/10 experience and much faster than langchain.

Jason Fan

Jason Fan

Finic.ai

It's amazing!! Was able to cut down my tokens and time-to-first-token significantly without compromising results.

Ray del Vecchio

Ray del Vecchio

Cerebral Valley

BAML is amazing. I've used it in Python and Typescript. It's a game changer.

Adam Gitzes

Adam Gitzes

Amazon

Just set up baml for my project, 10/10 experience and much faster than langchain.

Jason Fan

Jason Fan

Finic.ai

It's amazing!! Was able to cut down my tokens and time-to-first-token significantly without compromising results.

Ray del Vecchio

Ray del Vecchio

Cerebral Valley

BAML is definitely a must have if you want any structured data from LLM; no more BS/long paragraphs describing what the output should be like, it just works!!!

Hankel Bao

Hankel Bao

Coldreach.ai

The test case and playground is quite literally the BEST feature. It has improved the iteration speed and quality by an order of magnitude.

Joseph Tutera

Joseph Tutera

Docucare AI

I really really like what Baml offers [...] I think it's a step-wise improvement over Marvin. Having complete control over the prompt WITH strong type guarantees is fantastic.
I also think the dedicated testing playground is awesome.

Gabe

Gabe

Zenfetch

BAML is definitely a must have if you want any structured data from LLM; no more BS/long paragraphs describing what the output should be like, it just works!!!

Hankel Bao

Hankel Bao

Coldreach.ai

The test case and playground is quite literally the BEST feature. It has improved the iteration speed and quality by an order of magnitude.

Joseph Tutera

Joseph Tutera

Docucare AI

I really really like what Baml offers [...] I think it's a step-wise improvement over Marvin. Having complete control over the prompt WITH strong type guarantees is fantastic.
I also think the dedicated testing playground is awesome.

Gabe

Gabe

Zenfetch

BAML is definitely a must have if you want any structured data from LLM; no more BS/long paragraphs describing what the output should be like, it just works!!!

Hankel Bao

Hankel Bao

Coldreach.ai

The test case and playground is quite literally the BEST feature. It has improved the iteration speed and quality by an order of magnitude.

Joseph Tutera

Joseph Tutera

Docucare AI

I really really like what Baml offers [...] I think it's a step-wise improvement over Marvin. Having complete control over the prompt WITH strong type guarantees is fantastic.
I also think the dedicated testing playground is awesome.

Gabe

Gabe

Zenfetch

BAML is definitely a must have if you want any structured data from LLM; no more BS/long paragraphs describing what the output should be like, it just works!!!

Hankel Bao

Hankel Bao

Coldreach.ai

The test case and playground is quite literally the BEST feature. It has improved the iteration speed and quality by an order of magnitude.

Joseph Tutera

Joseph Tutera

Docucare AI

I really really like what Baml offers [...] I think it's a step-wise improvement over Marvin. Having complete control over the prompt WITH strong type guarantees is fantastic.
I also think the dedicated testing playground is awesome.

Gabe

Gabe

Zenfetch

Code is hella clean now. Look at [the] folder structure, and each folder for a respective pipeline. Each file just a prompt. Clean, elegant, beautiful.

Paulo Rossi

Paulo Rossi

Magnaplay

Just got the categorizer to work first try.
Felt like landing a kickflip

Eitan Borgnia

Eitan Borgnia

Squack

Code is hella clean now. Look at [the] folder structure, and each folder for a respective pipeline. Each file just a prompt. Clean, elegant, beautiful.

Paulo Rossi

Paulo Rossi

Magnaplay

Just got the categorizer to work first try.
Felt like landing a kickflip

Eitan Borgnia

Eitan Borgnia

Squack

Code is hella clean now. Look at [the] folder structure, and each folder for a respective pipeline. Each file just a prompt. Clean, elegant, beautiful.

Paulo Rossi

Paulo Rossi

Magnaplay

Just got the categorizer to work first try.
Felt like landing a kickflip

Eitan Borgnia

Eitan Borgnia

Squack

Code is hella clean now. Look at [the] folder structure, and each folder for a respective pipeline. Each file just a prompt. Clean, elegant, beautiful.

Paulo Rossi

Paulo Rossi

Magnaplay

Just got the categorizer to work first try.
Felt like landing a kickflip

Eitan Borgnia

Eitan Borgnia

Squack

Share your story
Agent CTA Background

Build AI Applications with Confidence

Book a meeting with usStart building type-safe AI applications in minutes

Boundary

Open source toolkit for AI development. Build type-safe AI applications with your team - all with confidence and reliability.

  • Company
  • About Us
  • Why BAML?
  • Privacy Policy
  • Terms of Service
  • Resources
  • Changelog
  • Docs
  • Social
  • GitHub
  • Twitter
  • Discord
  • LinkedIn
  • YouTube