ai.errors.InvalidResponse

A provider response or event does not conform to its wire format. This is distinct from model output that fails the requested output schema.

Reference version

Signature

class ai.errors.InvalidResponse

A provider response or event does not conform to its wire format. This is distinct from model output that fails the requested output schema.

Source:<builtin>/ai/ns_errors/errors.bamlbytes 7805–8042

Fields

provider

string

message

string

raw_body

string | null

status_code

int | null

Implementations