ai.internal.make_role

Construct a typed role marker for structural prompt assembly. The `${role(...)}` desugar in an LLM prompt body lowers to this call.

Reference version

Signature

function ai.internal.make_role(name: string) -> ai.Role

Construct a typed role marker for structural prompt assembly. The ${role(...)} desugar in an LLM prompt body lowers to this call.

Source:<builtin>/ai/ns_internal/prompt.bamlbytes 21512256