ai.Client

interface in the ai package.

Reference version

Signature

interface ai.Client

Source:<builtin>/ai/turn.bamlbytes 19312431

Required instance methods

function

id

(self) -> string
function

render

(self, input: ai.ModelTurnInput) -> baml.http.Request throws ai.errors.InvokeError

Render the provider request shape without performing I/O. Reliability wrappers use this as a stable request-shape preview: they do not sleep, rotate, or try fallback members while rendering.