Expand description
Lightweight BAML parser — extracts classes, enums, functions from .baml files.
NOT a full BAML compiler. Parses just enough to generate:
- Rust structs with
#[derive(JsonSchema, Serialize, Deserialize)] - Tool definitions with prompts
- Enum types with string variants
Source of truth stays in .baml files.
Structs§
- Baml
Class - A parsed BAML class (→ Rust struct).
- Baml
Field - A field within a BAML class.
- Baml
Function - A parsed BAML function (→ tool definition + prompt).
- Baml
Module - All parsed items from BAML source files.
Enums§
- Baml
Type - BAML type representation.