import { CoreMessage } from 'ai'; import { IAIBackServiceOption } from '@opensumi/ide-core-common'; import { ChatReadableStream } from '@opensumi/ide-core-node'; import { CancellationToken } from '@opensumi/ide-utils'; import { ModelInfo } from '../common'; import { IToolInvocationRegistryManager, ToolRequest } from '../common/tool-invocation-registry'; export declare abstract class BaseLanguageModel { static ModelOptions: Record; protected readonly toolInvocationRegistryManager: IToolInvocationRegistryManager; protected abstract initializeProvider(options: IAIBackServiceOption): any; request(request: string, chatReadableStream: ChatReadableStream, options: IAIBackServiceOption, cancellationToken?: CancellationToken): Promise; private convertToolRequestToAITool; protected abstract getModelIdentifier(provider: any, modelId?: string): any; protected abstract getModelInfo(modelId: string, providerOptions?: Record): ModelInfo | undefined; protected handleStreamingRequest(provider: any, request: string, tools: ToolRequest[], chatReadableStream: ChatReadableStream, history?: CoreMessage[], modelId?: string, providerOptions?: Record, trimTexts?: [string, string], systemPrompt?: string, maxTokens?: number, images?: string[], cancellationToken?: CancellationToken): Promise; } //# sourceMappingURL=base-language-model.d.ts.map