Observability Hooks • AI Agent SDK

ObservabilityHooks: Observability hooks for escalation pipeline.

ObservabilityHooks

Defined in the observability module.

AI Agent

Observability hooks for escalation pipeline.

Provides:

  • Event emission
  • Metrics collection
  • Custom handler registration
  • Tracing support
Diagram

Allow

Deny

Event Trigger

Hook: ObservabilityHooks

Decision

Process

Block

Constructor

ParamField bool

No description available.

Methods

Usage

python
hooks = ObservabilityHooks()

    # Register handler
    hooks.on(EventType.STAGE_ESCALATE, lambda e: print(f"Escalated to {e.stage}"))

    # Use with pipeline
    pipeline = EscalationPipeline(observability=hooks)

Source

View on GitHub

praisonaiagents/escalation/observability.py at line 116


Related Documentation