> ## 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**](../modules/protocols) module.

<Badge color="blue">AI Agent</Badge>

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

<ResponseField name="session_id" type="Optional[str]">
  No description available.
</ResponseField>

<ResponseField name="reason" type="Optional[str]">
  No description available.
</ResponseField>

<ResponseField name="type" type="str">
  No description available.
</ResponseField>

## Methods

<CardGroup cols={2}>
  <Card title="from_frame()" icon="function" href="../functions/LeaveParams-from_frame">
    Validate a raw `leave` frame into typed params.
  </Card>
</CardGroup>

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/gateway/protocols.py#L515">
  `praisonaiagents/gateway/protocols.py` at line 515
</Card>
