import { LLM, type BaseLLMParams } from "@langchain/core/language_models/llms"; import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/manager"; import type { BaseLanguageModelCallOptions } from "@langchain/core/language_models/base"; import { JigsawStack } from "jigsawstack"; type JigsawStackType = ReturnType; export type PromptEngineInputParams = Omit["0"], "prompt">; interface JigsawStackPromptEngineInput extends BaseLLMParams { apiKey?: string; } interface PromptEngineCallOptions extends BaseLanguageModelCallOptions, Partial { } /** * Class representing JigsawStack Prompt Engine. It interacts * with the JigsawStack API to generate text completions. * @example * ```typescript * const model = new JigsawStackPromptEngine(); * * const res = await model.invoke( * "Question: Tell me about the leaning tower of pisa?\nAnswer:" * ); * console.log({ res }); * ``` */ export declare class JigsawStackPromptEngine extends LLM implements JigsawStackPromptEngineInput { static lc_name(): string; get lc_secrets(): { [key: string]: string; } | undefined; lc_serializable: boolean; apiKey: string; client: JigsawStackType; constructor(fields?: JigsawStackPromptEngineInput); _llmType(): string; invocationParams(options: this["ParsedCallOptions"]): { [k: string]: string | { key: string; optional?: boolean | undefined; initial_value?: string | undefined; }[] | Record | Record[] | undefined; }; /** @ignore */ _call(prompt: string, options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMRun): Promise; } export {};