google.internal.GmError

The `{"error": {...}}` document Google returns for a failed call. It arrives with a non-2xx status on the unary path (where `ai.wire.send_as` classifies it) and can also arrive as an SSE payload mid-stream.

Reference version

Signature

class google.internal.GmError

The {"error": {...}} document Google returns for a failed call. It arrives with a non-2xx status on the unary path (where ai.wire.send_as classifies it) and can also arrive as an SSE payload mid-stream.

Source:<builtin>/google/ns_internal/gemini.bamlbytes 75627638

Fields

code

int | null

message

string | null

status

string | null