This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # BAML (Basically, A Made-Up Language) Reference Guide for AI Agents | |
| <Overview> | |
| BAML is a domain-specific language for building type-safe LLM prompts as functions. It provides: | |
| - Strongly-typed inputs and outputs for LLM calls | |
| - Automatic JSON parsing and validation | |
| - Jinja-based prompt templating | |
| - Multi-language code generation (Python, TypeScript, Go, Ruby) | |
| The workflow is: Define BAML files → Run `baml-cli generate` → Import generated client in your code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ## Create the virtual environment | |
| conda create -n 'environment_name' | |
| ## Activate the virtual environment | |
| conda activate 'environment_name' | |
| ## Make sure that ipykernel is installed | |
| pip install --user ipykernel | |
| ## Add the new virtual environment to Jupyter |