> ## 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 relay and complete the handshake.

# 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 [**RelayTransport**](../classes/RelayTransport) class in the [**protocols**](../modules/protocols) module.

Establish the relay and complete the handshake.

Returns the :class:`CapabilityDescriptor` attested by the connector
for the platform it is fronting.

## Signature

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

### Returns

<ResponseField name="Returns" type="'CapabilityDescriptor'">
  The result of the operation.
</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/gateway/protocols.py#L4749">
  `praisonaiagents/gateway/protocols.py` at line 4749
</Card>
