RealtimeObserver
Observer for the OpenAI Realtime API.
Parameters:
Instance Attributes
agent
logger
realtime_client
Instance Methods
initialize_session
on_close
on_event
Parameters:
run
When implementing, be sure to call
self._ready_event.set() when the observer is ready to process events.Parameters:
run_loop
This method is called after the observer is ready to process events.
Events will be processed by the on_event method, this is just a hook for additional processing.
Use initialize_session to set up the session.