import * as z from "zod"; import { ClosedEnum } from "../types/enums.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./sdkvalidationerror.js"; /** * The object type, which is always "embedding". */ export declare const ObjectT: { readonly Embedding: "embedding"; }; /** * The object type, which is always "embedding". */ export type ObjectT = ClosedEnum; /** * Represents an embedding vector returned by embedding endpoint. * * @remarks */ export type Embedding = { /** * The index of the embedding in the list of embeddings. */ index: number; /** * The embedding vector, which is a list of floats. The length of vector depends on the model as listed in the [embedding guide](/guides/querying-embedding-models). * * @remarks */ embedding: Array; /** * The object type, which is always "embedding". */ object: ObjectT; }; /** @internal */ export declare const ObjectT$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ObjectT$outboundSchema: z.ZodNativeEnum; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace ObjectT$ { /** @deprecated use `ObjectT$inboundSchema` instead. */ const inboundSchema: z.ZodNativeEnum<{ readonly Embedding: "embedding"; }>; /** @deprecated use `ObjectT$outboundSchema` instead. */ const outboundSchema: z.ZodNativeEnum<{ readonly Embedding: "embedding"; }>; } /** @internal */ export declare const Embedding$inboundSchema: z.ZodType; /** @internal */ export type Embedding$Outbound = { index: number; embedding: Array; object: string; }; /** @internal */ export declare const Embedding$outboundSchema: z.ZodType; /** * @internal * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module. */ export declare namespace Embedding$ { /** @deprecated use `Embedding$inboundSchema` instead. */ const inboundSchema: z.ZodType; /** @deprecated use `Embedding$outboundSchema` instead. */ const outboundSchema: z.ZodType; /** @deprecated use `Embedding$Outbound` instead. */ type Outbound = Embedding$Outbound; } export declare function embeddingToJSON(embedding: Embedding): string; export declare function embeddingFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=embedding.d.ts.map