on • AI Agent SDK
on: Register an event handler.
on
Method
</div>
This is a method of the ObservabilityHooks class in the observability module.
Register an event handler.
Signature
def on(event_type: EventType, handler: Callable[[ObservabilityEvent], None]) -> AnyParameters
ParamField
EventTypeType of event to handle
ParamField
CallableHandler function
Returns
ResponseField
AnyThe result of the operation.
Source
View on GitHubpraisonaiagents/escalation/observability.py at line 154