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

    Interface AgentConnectionExperimental

    Experimental draft ACP v2 agent-side connection returned by AgentApp.connect(...).

    Use client to call client-side ACP methods for the lifetime of the connection.

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

    Hierarchy (View Summary)

    Index
    signal: AbortSignal

    AbortSignal that aborts when the connection closes.

    closed: Promise<void>

    Promise that resolves when the connection closes.

    client: AgentContext

    Context for calling client-side ACP methods.

    • Experimental

      Closes the connection and rejects pending requests.

      Parameters

      • Optionalerror: unknown

      Returns void