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

# connect • AI Agent SDK

> connect: Establish the platform connection.

# connect

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

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

Establish the platform connection.

## Signature

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

### Returns

<ResponseField name="Returns" type="bool">
  True if the connection was established successfully.
</ResponseField>

## Used By

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

## Source

<Card title="View on GitHub" icon="github" href="https://github.com/MervinPraison/PraisonAI/blob/main/src/praisonai-agents/praisonaiagents/bots/base.py#L368">
  `praisonaiagents/bots/base.py` at line 368
</Card>
