import { ExecutionOptions, LLMCache, LLMMeta, EmbeddingOutput, BaseLLMTokenizeOutput, GenerateOptions, StreamGenerateOptions, AsyncStream, BaseLLMEvents } from '../../llms/base.cjs'; import { ChatLLMOutput, ChatLLMGenerateEvents, ChatLLM } from '../../llms/chat.cjs'; import { BaseMessage } from '../../llms/primitives/message.cjs'; import { E as Emitter } from '../../emitter-BWtGHYn0.cjs'; import { ChatResponse, Ollama, Options, ChatRequest } from 'ollama'; import { GetRunContext } from '../../context.cjs'; import { OllamaEmbeddingOptions } from './llm.cjs'; import '../../errors.cjs'; import '../../internals/types.cjs'; import '../../internals/helpers/guards.cjs'; import '../../internals/serializable.cjs'; import '../../cache/base.cjs'; import 'promise-based-task'; import '../../internals/helpers/promise.cjs'; import '../../llms/llm.cjs'; declare class OllamaChatLLMOutput extends ChatLLMOutput { readonly results: ChatResponse[]; constructor(response: ChatResponse); get messages(): BaseMessage[]; getTextContent(): string; get finalResult(): Readonly; merge(other: OllamaChatLLMOutput): void; toString(): string; createSnapshot(): { results: ChatResponse[]; }; loadSnapshot(snapshot: ReturnType): void; } interface Input { modelId: string; client?: Ollama; parameters?: Partial; executionOptions?: ExecutionOptions; cache?: LLMCache; } type OllamaChatLLMEvents = ChatLLMGenerateEvents; declare class OllamaChatLLM extends ChatLLM { readonly emitter: Emitter; readonly client: Ollama; readonly parameters: Partial; constructor({ client, modelId, parameters, executionOptions, cache }?: Input); meta(): Promise; embed(input: BaseMessage[][], options?: OllamaEmbeddingOptions): Promise; tokenize(input: BaseMessage[]): Promise; version(): Promise; protected _generate(input: BaseMessage[], options: GenerateOptions, run: GetRunContext): Promise; protected _stream(input: BaseMessage[], options: Partial, run: GetRunContext): AsyncStream; protected prepareParameters(input: BaseMessage[], overrides?: GenerateOptions): Promise; createSnapshot(): { modelId: string; parameters: Partial; executionOptions: ExecutionOptions; client: Ollama; emitter: Emitter>; cache: LLMCache; }; } export { OllamaChatLLM, type OllamaChatLLMEvents, OllamaChatLLMOutput };