ai.clients.Fallback

Streaming fallback advances in member order only for a typed, safely retryable failure that occurs before the first text delta is returned.

Reference version

Signature

class ai.clients.Fallback

Streaming fallback advances in member order only for a typed, safely retryable failure that occurs before the first text delta is returned.

Source:<builtin>/ai/ns_clients/clients.bamlbytes 1603020634

Fields

Instance methods

Implementations

ai.Client for ai.clients.Fallback

Instance methods

function

id

(self) -> string
function

render

(
self,
) -> baml.http.Request throws baml.errors.Timeout | baml.errors.UnknownError | reflect.errors.CompilationError | ai.errors.Failure

Rendering previews the first fallback member. It never probes later members because request construction itself must remain pure.

Source:<builtin>/ai/ns_clients/clients.bamlbytes 1723918800