baml.TaggedString
The structured value a tagged template literal produces.
Signature
class baml.TaggedStringThe structured value a tagged template literal produces.
A tagged call site tag`…` lowers to
tag(body = () -> TaggedString { … }); running body() returns this
struct. Literals and values alternate, beginning and ending with a literal,
so parts.length == values.length + 1 — an empty string fills the leading
or trailing slot when the template starts or ends with an interpolation.
See BEP-049 §10.
Source:<builtin>/baml/core.bamlbytes 1230–1546
Fields
parts
string[]Literal text segments between interpolations, in source order.
values
unknown[]Interpolated values, in source order. Each entry has the type of its
${expr} site, so the array is heterogeneous; tags inspect element
types at runtime.
Implementations
baml.Concrete for T
Source:<builtin>/baml/core.bamlbytes 747–779