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

    Interface ClientConnectionExperimental

    Experimental draft ACP v2 client-side connection returned by ClientApp.connect(...).

    Use agent to call agent-side ACP methods and session helpers for the lifetime of the connection.

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

    Hierarchy (View Summary)

    Index
    signal: AbortSignal

    AbortSignal that aborts when the connection closes.

    closed: Promise<void>

    Promise that resolves when the connection closes.

    Context for calling agent-side ACP methods.

    • Experimental

      Closes the connection and rejects pending requests.

      Parameters

      • Optionalerror: unknown

      Returns void