import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The embedding vector, either as an array of floats or a base64-encoded string */ export type Embedding = Array | string; export type Data = { object?: "embedding" | undefined; /** * The embedding vector, either as an array of floats or a base64-encoded string */ embedding: Array | string; index: number; }; /** * Usage statistics for the embeddings request */ export type EmbeddingsResponseUsage = { promptTokens: number; totalTokens: number; }; /** * Response from the embeddings endpoint containing the generated embeddings and usage information. */ export type EmbeddingsResponse = { /** * A list of embedding objects. Each object contains the embedding vector as an array of floating point numbers or base64-encoded string representing the semantic meaning of the input text. */ data: Array; /** * The model used for generating the embeddings */ model: string; object?: "list" | undefined; /** * Usage statistics for the embeddings request */ usage?: EmbeddingsResponseUsage | undefined; }; /** @internal */ export declare const Embedding$inboundSchema: z.ZodType; /** @internal */ export type Embedding$Outbound = Array | string; /** @internal */ export declare const Embedding$outboundSchema: z.ZodType; export declare function embeddingToJSON(embedding: Embedding): string; export declare function embeddingFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Data$inboundSchema: z.ZodType; /** @internal */ export type Data$Outbound = { object: "embedding"; embedding: Array | string; index: number; }; /** @internal */ export declare const Data$outboundSchema: z.ZodType; export declare function dataToJSON(data: Data): string; export declare function dataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EmbeddingsResponseUsage$inboundSchema: z.ZodType; /** @internal */ export type EmbeddingsResponseUsage$Outbound = { prompt_tokens: number; total_tokens: number; }; /** @internal */ export declare const EmbeddingsResponseUsage$outboundSchema: z.ZodType; export declare function embeddingsResponseUsageToJSON(embeddingsResponseUsage: EmbeddingsResponseUsage): string; export declare function embeddingsResponseUsageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EmbeddingsResponse$inboundSchema: z.ZodType; /** @internal */ export type EmbeddingsResponse$Outbound = { data: Array; model: string; object: "list"; usage?: EmbeddingsResponseUsage$Outbound | undefined; }; /** @internal */ export declare const EmbeddingsResponse$outboundSchema: z.ZodType; export declare function embeddingsResponseToJSON(embeddingsResponse: EmbeddingsResponse): string; export declare function embeddingsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=embeddingsresponse.d.ts.map