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

python
def emit(event_type: EventType, data: Optional[Dict[str, Any]], duration_ms: Optional[float]) -> Any

Parameters

ParamField EventType

Type of event

ParamField Optional

Event data

ParamField Optional[float]

Optional duration

Returns

ResponseField Any

The result of the operation.

Uses

  • ObservabilityEvent
  • time.time
  • handler
  • logger.warning

Used By

Source

View on GitHub

praisonaiagents/escalation/observability.py at line 175