/opt/canhelp/node_modules/@anthropic-ai/sdk/internal
Edit: /opt/canhelp/node_modules/@anthropic-ai/sdk/internal/parse.d.ts (811B)
import type { FinalRequestOptions } from "./request-options.js";
import { type BaseAnthropic } from "../client.js";
import type { AbstractPage } from "../core/pagination.js";
export type APIResponseProps = {
response: Response;
options: FinalRequestOptions;
controller: AbortController;
requestLogID: string;
retryOfRequestLogID: string | undefined;
startTime: number;
};
export declare function defaultParseResponse
(client: BaseAnthropic, props: APIResponseProps): Promise>;
export type WithRequestID = T extends Array | Response | AbstractPage ? T : T extends Record ? T & {
_request_id?: string | null;
} : T;
export declare function addRequestID(value: T, response: Response): WithRequestID;
//# sourceMappingURL=parse.d.ts.map