ai.internal.SpecCtx
Bound as `ctx` inside a compiler-desugared `@spec` prompt template. `output_format` is the one placeholder the BEP allows.
Reference version
Signature
class ai.internal.SpecCtxBound as ctx inside a compiler-desugared @spec prompt template.
output_format is the one placeholder the BEP allows.
Source:<builtin>/ai/ns_internal/helpers.bamlbytes 777–2148
Fields
_output_format
Instance methods
function
output_format
(self,
prefix: string | null | ai.internal.OutputFormatDefault = …,
or_splitter: string | ai.internal.OutputFormatDefault = …,
enum_value_prefix: string | null | ai.internal.OutputFormatDefault = …,
hoisted_class_prefix: string | null | ai.internal.OutputFormatDefault = …,
always_hoist_enums: bool | ai.internal.OutputFormatDefault = …,
quote_class_fields: bool | ai.internal.OutputFormatDefault = …,
hoist_classes: bool | "auto" | string[] | ai.internal.OutputFormatDefault = …,
map_style: "angle" | "object" | ai.internal.OutputFormatDefault = …,
render_null_as: string | null | ai.internal.OutputFormatDefault = …
) -> string