emit • AI Agent SDK
emit: Emit an event.
emit
Method
</div>
This is a method of the ObservabilityHooks class in the observability module.
Emit an event.
Signature
def emit(event_type: EventType, data: Optional[Dict[str, Any]], duration_ms: Optional[float]) -> AnyParameters
ParamField
EventTypeType of event
ParamField
OptionalEvent data
ParamField
Optional[float]Optional duration
Returns
ResponseField
AnyThe result of the operation.
Uses
ObservabilityEventtime.timehandlerlogger.warning
Used By
Source
View on GitHubpraisonaiagents/escalation/observability.py at line 175