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

    Type Alias ClientHandlerContext<Params>Experimental

    Common context passed to client-side handlers.

    type ClientHandlerContext<Params> = {
        method: string;
        params: Params;
        signal: AbortSignal;
        agent: ClientContext;
    }

    Type Parameters

    • Params
    Index
    method: string

    The method being handled, including the actual name in fallback handlers.

    params: Params

    Parsed request or notification params.

    signal: AbortSignal

    AbortSignal for the current request, or the connection signal for notifications.

    Typed agent context for calling agent-side ACP methods.