On Error • AI Agent SDK
on_error: Register callback for errors.
on_error
Method
</div>
This is a method of the RealtimeAgent class in the realtime_agent module.
Register callback for errors.
Signature
def on_error(callback: Callable[[Exception], None]) -> NoneParameters
ParamField
CallableFunction to call with exception
Source
View on GitHubpraisonaiagents/agent/realtime_agent.py at line 434