Skip to content
Français

CustomReporter

import type { CustomReporter } from "@elie-laloum/outpost";
  • eventRequired
    AgentObservation
    Normalized agent observation to enqueue; returns immediately without waiting for its handler.
  • flushRequired
    () => Promise<void>
    Wait for events received before this call; reject with the first handler failure, including on subsequent calls, without closing external resources.
export interface CustomReporter {
  (event: AgentObservation): void;
  flush(): Promise<void>;
}