ACP v2 (Preview) TypeScript SDK — UNSTABLE - v2.12.1
    Preparing search index...

    Type Alias ClientResponse

    ClientResponse:
        | {
            id: RequestId;
            result: | RequestPermissionResponse
            | CreateElicitationResponse
            | MessageMcpResponse
            | ExtResponse;
        }
        | { id: number
        | string
        | null; error: Error }

    A JSON-RPC response object.

    Type Declaration

    • {
          id: RequestId;
          result:
              | RequestPermissionResponse
              | CreateElicitationResponse
              | MessageMcpResponse
              | ExtResponse;
      }
    • { id: number | string | null; error: Error }
      • id: number | string | null

        The id of the request this response answers.

        Required. null only when the request's id could not be determined, such as for a parse error or an invalid request.

      • error: Error

        Method-specific error data.