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

    Interface ClientConnection

    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

    Properties

    Methods

    Properties

    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.

    Methods

    • Closes the connection and rejects pending requests.

      Parameters

      • Optionalerror: unknown

      Returns void