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

# Leave Params • AI Agent SDK

> LeaveParams: Validated ``leave`` frame — a client ending its participation.

# LeaveParams

> Defined in the [**protocols**](https://praison.ai/docs/sdk/reference/praisonaiagents/modules/protocols.md) module.

AI Agent

Validated `leave` frame — a client ending its participation.

Completes the typed contract for the advertised `leave` method.

Attributes:
session\_id: Optional session the client is leaving.
reason: Optional human-readable reason (display / logging only).

## Properties

**session\_id** `Optional[str]`

No description available.

**reason** `Optional[str]`

No description available.

**type** `str`

No description available.

## Methods

> [card] [from\_frame()](https://praison.ai/docs/sdk/reference/praisonaiagents/functions/LeaveParams-from_frame.md)
>
> Validate a raw `leave` frame into typed params.

## Source

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


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