@runloop/agent-axon-client
    Preparing search index...

    Interface AxonStreamOptions

    Configuration for creating a low-level Axon stream via axonStream.

    interface AxonStreamOptions {
        afterSequence?: number;
        axon: Axon;
        log?: LogFn;
        onAxonEvent?: (event: AxonEventView) => void;
        onError?: (error: unknown) => void;
        replayTargetSequence?: number;
        signal?: AbortSignal;
    }
    Index

    ACP Protocol

    afterSequence?: number

    Axon sequence number to resume from. When set, the initial SSE subscription starts after this sequence — earlier events are skipped. Omit to replay the full event history.

    axon: Axon

    Axon channel to connect to (from @runloop/api-client).

    log?: LogFn

    Diagnostic log callback. When provided, the stream emits verbose logs.

    onAxonEvent?: (event: AxonEventView) => void

    Called for every Axon event before JSON-RPC translation.

    onError?: (error: unknown) => void

    Called when a non-critical error occurs (e.g. unparseable SSE event). Defaults to console.error.

    replayTargetSequence?: number

    When set, events with sequence <= replayTargetSequence are considered historical replay. During replay, onAxonEvent still fires (so timeline listeners work) but agent-to-client requests are buffered instead of enqueued. After replay ends, only unresolved requests are enqueued.

    signal?: AbortSignal

    AbortSignal to cancel the SSE connection and stop publishing.