You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the derive macro for BAMLType currently takes a bunch of effort. proposing replacing it with something like Facet so we don't have to maintain as much code, we can control representation really granularly, and everything can impl everything for when RLMs come along and when we want custom rendering formatting to the models . (eg: #[render] for jinja) .
shit is fucked and does not scale when the codebase gets much more complex
#[BamlType] now derives facet::Facet via the attribute macro in bamltype-derive. The old schemars-based derive path is gone from the main typed pipeline. The macro handles:
Activity
darinkishore commentedon Feb 12, 2026
Closing — this was done.
#[BamlType]now derivesfacet::Facetvia the attribute macro inbamltype-derive. The old schemars-based derive path is gone from the main typed pipeline. The macro handles:#[baml(rename = "...")],#[baml(rename_all = "...")]#[baml(skip)],#[baml(default)]#[baml(check(...))],#[baml(assert(...))]constraints#[baml(with = AdapterType)]for custom field adapters#[baml(description = "...")]and doc-comment extractionRemaining schemars usage (the
field!macro inlib.rsandspecials.rs) is tracked by #52 and #73.