import _m0 from 'protobufjs/minimal'; export declare const protobufPackage = "yandex.cloud.ai.llm.v1alpha"; /** Defines the options for text generation. */ export interface GenerationOptions { /** Enables streaming of partially generated text. */ partialResults: boolean; /** * Affects creativity and randomness of responses. Should be a double number between 0 (inclusive) and 1 (inclusive). * Lower values produce more straightforward responses, while higher values lead to increased creativity and randomness. */ temperature?: number; /** * Sets the maximum limit on the total number of tokens used for both the input prompt and the generated response. * Must be greater than zero and not exceed 7400 tokens. */ maxTokens?: number; } /** Represents an alternative generated response, including its score and token count. */ export interface Alternative { /** The generated text response. */ text: string; /** The score or confidence of the generated text. */ score: number; /** The number of tokens in the generated response. */ numTokens: number; } /** Represents a message within a chat. */ export interface Message { /** Identifies the sender of the message. */ role: string; /** The text content of the message. */ text: string; } /** Represents a token, the basic unit of text, used by the LLM. */ export interface Token { /** An internal token identifier. */ id: number; /** The textual representation of the token. */ text: string; /** Indicates whether the token is special or not. Special tokens define the model's behavior and are not visible to users. */ special: boolean; } export declare const GenerationOptions: { encode(message: GenerationOptions, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GenerationOptions; fromJSON(object: any): GenerationOptions; toJSON(message: GenerationOptions): unknown; fromPartial, never>>(object: I): GenerationOptions; }; export declare const Alternative: { encode(message: Alternative, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Alternative; fromJSON(object: any): Alternative; toJSON(message: Alternative): unknown; fromPartial, never>>(object: I): Alternative; }; export declare const Message: { encode(message: Message, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Message; fromJSON(object: any): Message; toJSON(message: Message): unknown; fromPartial, never>>(object: I): Message; }; export declare const Token: { encode(message: Token, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): Token; fromJSON(object: any): Token; toJSON(message: Token): unknown; fromPartial, never>>(object: I): Token; }; 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 {};