/** * This file was auto-generated by Fern from our API Definition. */ import * as environments from "../../../../environments"; import * as core from "../../../../core"; import * as Vellum from "../../../index"; export declare namespace AdHoc { interface Options { environment?: core.Supplier; /** Specify a custom URL to connect the client to. */ baseUrl?: core.Supplier; apiKey: core.Supplier; /** Override the X-API-Version header */ apiVersion?: core.Supplier; } 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-Version header */ apiVersion?: Vellum.ApiVersionEnum | undefined; /** Additional headers to include in the request. */ headers?: Record; } } export declare class AdHoc { protected readonly _options: AdHoc.Options; constructor(_options: AdHoc.Options); /** * @param {Vellum.AdHocExecutePrompt} request * @param {AdHoc.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Vellum.BadRequestError} * @throws {@link Vellum.ForbiddenError} * @throws {@link Vellum.InternalServerError} * * @example * await client.adHoc.adhocExecutePrompt({ * mlModel: "x", * inputValues: [{ * name: "x", * type: "STRING", * value: "value" * }, { * name: "x", * type: "STRING", * value: "value" * }], * inputVariables: [{ * id: "x", * key: "key", * type: "STRING" * }, { * id: "x", * key: "key", * type: "STRING" * }], * parameters: {}, * blocks: [{ * blockType: "JINJA", * template: "template" * }, { * blockType: "JINJA", * template: "template" * }] * }) */ adhocExecutePrompt(request: Vellum.AdHocExecutePrompt, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise; private __adhocExecutePrompt; adhocExecutePromptStream(request: Vellum.AdHocExecutePromptStream, requestOptions?: AdHoc.RequestOptions): core.HttpResponsePromise>; private __adhocExecutePromptStream; protected _getCustomAuthorizationHeaders(): Promise<{ "X-API-KEY": string; }>; }