Frame Decode Error • AI Agent SDK

FrameDecodeError: Raised when a raw inbound frame fails schema validation.

FrameDecodeError

Defined in the protocols module.

AI Agent

Raised when a raw inbound frame fails schema validation.

Carries a structured :class:HelloError so the transport can reject the frame deterministically with the existing `(code, next_step, retry_after_seconds) contract instead of a per-handler try/except and ad-hoc isinstance checks. The wrapper server maps error.to_dict() onto the outbound hello_error (or error`) frame.

Attributes: error: The structured rejection envelope to send back to the client.

Constructor

ParamField HelloError

No description available.

Source

View on GitHub

praisonaiagents/gateway/protocols.py at line 553


Related Documentation