> ## 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.

# From Frame • AI Agent SDK

> from_frame: Validate a raw ``message`` frame into typed params.

# from\_frame

Method

> This is a method of the [**MessageParams**](https://praison.ai/docs/sdk/reference/praisonaiagents/classes/MessageParams.md) class in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

Validate a raw `message` frame into typed params.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def from_frame(data: Dict[str, Any]) -> 'MessageParams'
```

## Parameters

**data** `Dict[str, Any]` *required*

No description available.

### Returns

**Returns** `'MessageParams'`

The result of the operation.

## Uses

* `FrameDecodeError`
* `HelloError`
* `AttachmentRef.from_dict`
* `cls`

## Used By

* [`decode_client_frame`](../functions/decode_client_frame)
* [`decode_client_frame`](../functions/decode_client_frame)
* [`decode_client_frame`](../functions/decode_client_frame)

## Source

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


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