/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Vectara from "../../../index"; export declare namespace GenerationPresets { interface Options { environment?: core.Supplier; token?: core.Supplier; /** Override the x-api-key header */ apiKey?: core.Supplier; fetcher?: core.FetchFunction; } interface RequestOptions { /** The maximum time to wait for a response in seconds. */ timeoutInSeconds?: number; /** The number of times to retry the request. Defaults to 2. */ maxRetries?: number; /** A hook to abort the request. */ abortSignal?: AbortSignal; /** Override the x-api-key header */ apiKey?: string | undefined; /** Additional headers to include in the request. */ headers?: Record; } } export declare class GenerationPresets { protected readonly _options: GenerationPresets.Options; constructor(_options?: GenerationPresets.Options); /** * List generation presets used for query or chat requests. Generation presets are * the build of properties used to configure generation for a request. This includes * the template that renders the prompt, and various generation settings like * `temperature`. * * @param {Vectara.ListGenerationPresetsRequest} request * @param {GenerationPresets.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vectara.ForbiddenError} * * @example * await client.generationPresets.listGenerationPresets() */ listGenerationPresets(request?: Vectara.ListGenerationPresetsRequest, requestOptions?: GenerationPresets.RequestOptions): Promise; protected _getAuthorizationHeader(): Promise; }