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

    Interface AgentConnection

    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

    Properties

    Methods

    Properties

    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.

    Methods

    • Closes the connection and rejects pending requests.

      Parameters

      • Optionalerror: unknown

      Returns void