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

Source:<builtin>/ai/spec.bamlbytes 25563086

Fields

_data

$rust_type

Instance methods

function

text

(self) -> string

Implementations

baml.ToString for ai.Prompt

Instance methods

function

to_string

(self) -> string

Source:<builtin>/ai/spec.bamlbytes 29603084