ACP v2 TypeScript SDK — EXPERIMENTAL DRAFT - v1.3.0
    Preparing search index...

    Interface AcpConnectionExperimental

    Experimental draft ACP v2 connection returned by AgentApp.connect(...) and ClientApp.connect(...).

    Use this handle when you need a connection to stay open independently of a single connectWith(...) operation.

    interface AcpConnection {
        signal: AbortSignal;
        closed: Promise<void>;
        close(error?: unknown): void;
    }

    Hierarchy (View Summary)

    Index
    signal: AbortSignal

    AbortSignal that aborts when the connection closes.

    closed: Promise<void>

    Promise that resolves when the connection closes.

    • Experimental

      Closes the connection and rejects pending requests.

      Parameters

      • Optionalerror: unknown

      Returns void