baml
BAML, standing for Basically a Made-up Language, is an AI framework that transforms prompt engineering into schema engineering to build reliable AI workflows and agents. It allows developers to define prompts as strongly typed functions that accept parameters and return specific data structures, separating prompt logic from application code. This approach ensures type safety, structured outputs, and predictable behavior across LLM interactions. BAML supports a wide range of programming languages including Python, TypeScript, Ruby, Java, C, Rust, and Go, enabling seamless integration where the core BAML definitions are compiled into language-specific client libraries. Key features include native support for streaming responses, automatic retries, broad model compatibility, and reliable tool calling even for models without native tool-use APIs. The framework emphasizes treating prompts as first-class functions, making it easier to manage complex agent loops and chained workflows. Developed by BoundaryML, BAML i