> ## 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 ``leave`` frame into typed params.

# from\_frame

<div className="flex items-center gap-2">
  <Badge color="purple">Method</Badge>
</div>

> This is a method of the [**LeaveParams**](../classes/LeaveParams) class in the [**protocols**](../modules/protocols) module.

Validate a raw `leave` frame into typed params.

## Signature

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

## Parameters

<ParamField query="data" type="Dict[str, Any]" required={true}>
  No description available.
</ParamField>

### Returns

<ResponseField name="Returns" type="'LeaveParams'">
  The result of the operation.
</ResponseField>

## Uses

* `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 title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L531">
  `praisonaiagents/gateway/protocols.py` at line 531
</Card>
