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

python
def connect() -> bool

Returns

ResponseField bool

True if connected successfully

Uses

  • asyncio.get_running_loop
  • asyncio.get_event_loop
  • loop.run_until_complete
  • aconnect
  • asyncio.new_event_loop
  • asyncio.set_event_loop

Used By

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 187