> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Frame Decode Error • AI Agent SDK

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

# FrameDecodeError

> Defined in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) 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

**error** `HelloError` *required*

No description available.

## Source

> [card] [View on GitHub](https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L553)
>
> `praisonaiagents/gateway/protocols.py` at line 553

***

## Related Documentation

> [card] [Code Agent](https://praison.ai/docs/docs/features/codeagent)

> [card] [Code Feature](https://praison.ai/docs/docs/features/code)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.