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.SpecCtx

Bound 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 7772148

Fields

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