temp
This commit is contained in:
17
node_modules/@anthropic-ai/sdk/internal/parse.d.ts
generated
vendored
Normal file
17
node_modules/@anthropic-ai/sdk/internal/parse.d.ts
generated
vendored
Normal file
@@ -0,0 +1,17 @@
|
||||
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<T>(client: BaseAnthropic, props: APIResponseProps): Promise<WithRequestID<T>>;
|
||||
export type WithRequestID<T> = T extends Array<any> | Response | AbstractPage<any> ? T : T extends Record<string, any> ? T & {
|
||||
_request_id?: string | null;
|
||||
} : T;
|
||||
export declare function addRequestID<T>(value: T, response: Response): WithRequestID<T>;
|
||||
//# sourceMappingURL=parse.d.ts.map
|
||||
Reference in New Issue
Block a user