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

# adisconnect • AI Agent SDK

> adisconnect: Disconnect from the Realtime API asynchronously.

# adisconnect

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

> This is a method of the [**RealtimeAgent**](../classes/RealtimeAgent) class in the [**realtime\_agent**](../modules/realtime_agent) module.

Disconnect from the Realtime API asynchronously.

## Signature

```python theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
async def adisconnect() -> bool
```

### Returns

<ResponseField name="Returns" type="bool">
  True if disconnected successfully
</ResponseField>

## Uses

* `close`

## Used By

* [`RealtimeAgent.disconnect`](../functions/RealtimeAgent-disconnect)

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/agent/realtime_agent.py#L222">
  `praisonaiagents/agent/realtime_agent.py` at line 222
</Card>
