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

    Type Alias AgentHandlerContext<Params>

    Common context passed to agent-side handlers.

    type AgentHandlerContext<Params> = {
        method: string;
        params: Params;
        signal: AbortSignal;
        client: AgentContext;
    }

    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.

    client: AgentContext

    Typed client context for calling client-side ACP methods.