aconnect • AI Agent SDK

aconnect: Connect to the Realtime API asynchronously.

aconnect

Async

Method

</div>

This is a method of the RealtimeAgent class in the realtime_agent module.

Connect to the Realtime API asynchronously.

Signature

python
async def aconnect() -> bool

Returns

ResponseField bool

True if connected successfully

Uses

  • ImportError
  • ValueError
  • websockets.connect
  • to_session
  • callback

Used By

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 209