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

# close • AI Agent SDK

> close: Close the session.

# close

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

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

Close the session.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
def close() -> None
```

## Used By

* [`AudioAgent.transcribe`](../functions/AudioAgent-transcribe)
* [`AudioAgent.atranscribe`](../functions/AudioAgent-atranscribe)
* [`RealtimeAgent.adisconnect`](../functions/RealtimeAgent-adisconnect)
* [`Memory.reset_short_term`](../functions/Memory-reset_short_term)
* [`Memory.reset_long_term`](../functions/Memory-reset_long_term)

## Source

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