AAI SDK
    Preparing search index...

    Type Alias AgentCustomEvent

    A custom event emitted by the agent via ctx.send(event, data) — the payload the session records in SessionSnapshot.customEvents (id is a monotonic session-unique counter, event the name, data the payload).

    Deliberately NOT the DOM CustomEvent: it shares nothing with that interface, and the old name shadowed the global in .tsx files.

    type AgentCustomEvent = {
        data: unknown;
        event: string;
        id: number;
    }
    Index
    data: unknown
    event: string
    id: number