import { AbstractAssistant } from './assistant'; import { Runnable } from '@langchain/core/runnables'; import { AIMessageChunk, BaseMessage } from '@langchain/core/messages'; import { CustomFunctions, ProcessImageMessageProps, ProcessMessageProps, RegisterFunctionCallingProps, StreamMessageCallback } from '../types'; import { BindToolsInput } from '@langchain/core/language_models/chat_models'; import { ReactNode } from 'react'; export declare class LangChainAssistant extends AbstractAssistant { protected static apiKey: string; protected static model: string; protected static instructions: string; protected static temperature: number; protected static topP: number; protected static description: string; protected static maxTokens: number; protected llm: Runnable | null; protected messages: BaseMessage[]; protected static customFunctions: CustomFunctions; protected static tools: BindToolsInput[]; protected abortController: AbortController | null; protected constructor(); protected static checkModel(): void; protected static checkApiKey(): void; protected static isModelChanged(model?: string): boolean | "" | undefined; protected static isApiKeyChanged(apiKey?: string): boolean | "" | undefined; static configure({ apiKey, model, instructions, temperature, topP, description, maxTokens, }: { apiKey?: string; model?: string; instructions?: string; temperature?: number; topP?: number; description?: string; version?: string; maxTokens?: number; }): void; static registerFunctionCalling({ name, description, properties, required, callbackFunction, callbackFunctionContext, callbackMessage, }: RegisterFunctionCallingProps): void; addAdditionalContext({ context }: { context: string; }): Promise; stop(): void; restart(): void; protected trimMessages(): Promise; processTextMessage({ textMessage, streamMessageCallback, useTool, message, }: ProcessMessageProps): Promise; protected proceedToolCall({ finalChunk, message, streamMessageCallback, }: { finalChunk: AIMessageChunk; message: string; streamMessageCallback: StreamMessageCallback; }): Promise<{ customMessage: null; message: string; anotherFunctionCall?: undefined; } | { customMessage: ReactNode; message: string; anotherFunctionCall: boolean; }>; processImageMessage({ imageMessage, textMessage, streamMessageCallback, }: ProcessImageMessageProps): Promise; } //# sourceMappingURL=langchain.d.ts.map