agsamantha/node_modules/@langchain/community/dist/chat_models/portkey.d.ts

19 lines
952 B
TypeScript
Raw Normal View History

2024-10-02 15:15:21 -05:00
import { LLMOptions } from "portkey-ai";
import { CallbackManagerForLLMRun } from "@langchain/core/callbacks/manager";
import { BaseMessage } from "@langchain/core/messages";
import { ChatResult, ChatGenerationChunk } from "@langchain/core/outputs";
import { BaseChatModel } from "@langchain/core/language_models/chat_models";
import { PortkeySession } from "../llms/portkey.js";
export declare class PortkeyChat extends BaseChatModel {
apiKey?: string;
baseURL?: string;
mode?: string;
llms?: [LLMOptions] | null;
session: PortkeySession;
constructor(init?: Partial<PortkeyChat>);
_llmType(): string;
_generate(messages: BaseMessage[], options: this["ParsedCallOptions"], _?: CallbackManagerForLLMRun): Promise<ChatResult>;
_streamResponseChunks(messages: BaseMessage[], options: this["ParsedCallOptions"], runManager?: CallbackManagerForLLMRun): AsyncGenerator<ChatGenerationChunk>;
_combineLLMOutput(): {};
}