connect • AI Agent SDK
connect: Connect to the Realtime API (sync wrapper).
connect
Method
</div>
This is a method of the RealtimeAgent class in the realtime_agent module.
Connect to the Realtime API (sync wrapper).
Signature
def connect() -> boolReturns
ResponseField
boolTrue if connected successfully
Uses
asyncio.get_running_loopasyncio.get_event_looploop.run_until_completeaconnectasyncio.new_event_loopasyncio.set_event_loop
Used By
Source
View on GitHubpraisonaiagents/agent/realtime_agent.py at line 187