ai.errors.ParseFailed

The model's output does not fit the requested output schema. `raw_output` is the model output; `message` preserves the parser diagnostic when available. Malformed provider envelopes raise InvalidResponse instead.

Reference version

Signature

class ai.errors.ParseFailed

The model's output does not fit the requested output schema. raw_output is the model output; message preserves the parser diagnostic when available. Malformed provider envelopes raise InvalidResponse instead.

Source:<builtin>/ai/ns_errors/errors.bamlbytes 7442–7654

Fields

provider

string

raw_output

string

message

string | null

Implementations