lloyal-agents API Reference
    Preparing search index...

    Interface TraceWriter

    Sink for structured trace events emitted by the agent runtime

    Implementations receive every TraceEvent produced during agent execution. The runtime reads the active writer from the Trace Effection context (set by initAgents).

    All methods must be synchronous and must not throw — tracing is best-effort and must never disrupt agent execution.

    interface TraceWriter {
        flush(): void;
        nextId(): number;
        write(event: TraceEvent): void;
    }

    Implemented by

    Index

    Methods