Skip to content

symfonic.agent.middleware.events

events

Metacognitive reflection events -- frozen, immutable payloads.

ReflectionEvent dataclass

ReflectionEvent(
    run_id: str,
    verdict: ReflectionVerdict,
    confidence_before: float,
    sensitive_tag_hit: str | None,
    original_draft: str,
    revised_draft: str | None,
    refusal_message: str | None,
    matched_preferences: list[str] = list(),
    reflection_latency_ms: float = 0.0,
    reflection_tokens_in: int = 0,
    reflection_tokens_out: int = 0,
)

Emitted by MetacognitiveMiddleware after a reflection pass.