Receive Loop • AI Agent SDK

receive_loop: Main receive loop for processing incoming events.

receive_loop

Async

Method

</div>

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

Main receive loop for processing incoming events.

Signature

python
async def receive_loop() -> None

Uses

  • json.loads
  • callback
  • base64.b64decode
  • Exception

Source

View on GitHub

praisonaiagents/agent/realtime_agent.py at line 446