/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; export declare const protobufPackage = "yandex.cloud.ai.foundation_models.v1"; /** Request for the service to obtain text embeddings. */ export interface TextEmbeddingRequest { /** The [model URI](/docs/foundation-models/concepts/embeddings) to be used for obtaining text embeddings. */ modelUri: string; /** The input text for which the embedding is requested. */ text: string; /** Optional parameter to specify embedding dimension for models that support multi-dimensional outputs */ dim?: number; } /** Response containing generated text embedding. */ export interface TextEmbeddingResponse { /** A repeated list of double values representing the embedding. */ embedding: number[]; /** The number of tokens in the input text. */ numTokens: number; /** The model version changes with each new releases. */ modelVersion: string; } export declare const TextEmbeddingRequest: { encode(message: TextEmbeddingRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TextEmbeddingRequest; fromJSON(object: any): TextEmbeddingRequest; toJSON(message: TextEmbeddingRequest): unknown; fromPartial, never>>(object: I): TextEmbeddingRequest; }; export declare const TextEmbeddingResponse: { encode(message: TextEmbeddingResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): TextEmbeddingResponse; fromJSON(object: any): TextEmbeddingResponse; toJSON(message: TextEmbeddingResponse): unknown; fromPartial, never>) | undefined; numTokens?: number | undefined; modelVersion?: string | undefined; } & Record, never>>(object: I): TextEmbeddingResponse; }; /** Service for obtaining embeddings from input data. */ export declare const EmbeddingsServiceService: { /** A method for obtaining embeddings from text data. */ readonly textEmbedding: { readonly path: "/yandex.cloud.ai.foundation_models.v1.EmbeddingsService/TextEmbedding"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: TextEmbeddingRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => TextEmbeddingRequest; readonly responseSerialize: (value: TextEmbeddingResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => TextEmbeddingResponse; }; }; export interface EmbeddingsServiceServer extends UntypedServiceImplementation { /** A method for obtaining embeddings from text data. */ textEmbedding: handleUnaryCall; } export interface EmbeddingsServiceClient extends Client { /** A method for obtaining embeddings from text data. */ textEmbedding(request: TextEmbeddingRequest, callback: (error: ServiceError | null, response: TextEmbeddingResponse) => void): ClientUnaryCall; textEmbedding(request: TextEmbeddingRequest, metadata: Metadata, callback: (error: ServiceError | null, response: TextEmbeddingResponse) => void): ClientUnaryCall; textEmbedding(request: TextEmbeddingRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: TextEmbeddingResponse) => void): ClientUnaryCall; } export declare const EmbeddingsServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): EmbeddingsServiceClient; service: typeof EmbeddingsServiceService; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};
= P extends Builtin ? P : P & { [K in keyof P]: Exact
; } & Record>, never>; export {};