ai.Prompt
The rendered, provider-neutral prompt passed to clients. Roles split the prompt into messages and media remains structural until a provider lowers it to its wire format.
Reference version
Signature
class ai.PromptThe rendered, provider-neutral prompt passed to clients. Roles split the prompt into messages and media remains structural until a provider lowers it to its wire format.
Source:<builtin>/ai/spec.bamlbytes 2556–3086
Fields
_data
$rust_typeInstance methods
function
text
(self) -> stringImplementations
baml.ToString for ai.Prompt
Instance methods
function
to_string
(self) -> stringSource:<builtin>/ai/spec.bamlbytes 2960–3084