ai.prompt

Standalone tagged prompt constructor. The returned closure renders a structural `ai.Prompt` for the supplied low-level prompt context.

Reference version

Signature

function ai.prompt<__effect_param_0>(
body: (role: (name: string, metadata?: map<string, baml.json.json>) -> ai.Role throws never, ctx: ai.Context) -> baml.TaggedString throws __effect_param_0
) -> (ai.Context) -> ai.Prompt throws ai.errors.PromptRenderError throws never

Standalone tagged prompt constructor. The returned closure renders a structural ai.Prompt for the supplied low-level prompt context.

Source:<builtin>/ai/spec.bamlbytes 4844–5639