BAML is an open-source framework and domain-specific language designed to bring structured engineering practices to prompt development for large language model applications. Instead of treating prompts as unstructured text, BAML introduces a schema-driven approach where prompts are defined as typed functions with explicit inputs and outputs. This design allows developers to treat language model interactions as predictable software components rather than ad-hoc prompt strings. The framework enables developers to define prompt logic in a dedicated language while integrating it into applications written in various programming languages such as Python, TypeScript, Ruby, and Go. BAML also allows developers to specify which models are used for each prompt and how outputs should be validated or structured. By converting prompt engineering into a more formal programming workflow, the framework improves reliability, debugging, and maintainability of AI systems.

Features

  • Schema-driven prompting language for building reliable AI workflows
  • Prompt functions with typed inputs and outputs
  • Integration with multiple programming languages and development stacks
  • Support for defining model selection and prompt behavior
  • Structured output validation and data modeling
  • Tools for building AI agents and complex LLM pipelines

Project Samples

Project Activity

See All Activity >

License

Apache License V2.0

Follow BAML

BAML Web Site

Other Useful Business Software
The CI/CD Platform built for Mobile DevOps Icon
The CI/CD Platform built for Mobile DevOps

For mobile app developers interested in a powerful CI/CD platform for mobile app development and mobile DevOps

Save time, money, and developer frustration with fast, flexible, and scalable mobile CI/CD that just works. Whether you swear by native or would rather go cross-platform, we have you covered. From Swift to Objective-C, Java to Kotlin, as well as Xamarin, Cordova, Ionic, React Native, and Flutter: Whatever you choose, we will automatically configure your initial workflows and have you building in minutes.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of BAML!

Additional Project Details

Programming Language

Rust

Related Categories

Rust Large Language Models (LLM)

Registered

2026-03-04