Skip to main content

disconnect

Method
This is a method of the RealtimeAgent class in the realtime_agent module.
Disconnect from the Realtime API (sync wrapper).

Signature

def disconnect() -> bool

Returns

Returns
bool
True if disconnected successfully

Uses

  • asyncio.get_event_loop
  • loop.is_running
  • loop.run_until_complete
  • adisconnect
  • asyncio.new_event_loop
  • asyncio.set_event_loop

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 205