Agent Client Protocol - v1.0.0
    Preparing search index...

    Interface AcpConnection

    Active ACP 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

    Properties

    Methods

    Properties

    signal: AbortSignal

    AbortSignal that aborts when the connection closes.

    closed: Promise<void>

    Promise that resolves when the connection closes.

    Methods

    • Closes the connection and rejects pending requests.

      Parameters

      • Optionalerror: unknown

      Returns void