import { LLMAgent, LLMAgentParams, LLMAgentWorker } from '@llamaindex/core/agent'; import { ToolCallLLM, LLMMetadata, LLMChatParamsStreaming, ToolCallLLMMessageOptions, ChatResponseChunk, LLMChatParamsNonStreaming, ChatResponse, LLMCompletionParamsStreaming, CompletionResponse, LLMCompletionParamsNonStreaming, BaseTool } from '@llamaindex/core/llms'; import { Tool } from 'ollama'; import { Ollama as Ollama$1, Options, Config } from 'ollama/browser'; import { BaseEmbedding } from '@llamaindex/core/embeddings'; type OllamaParams = { model: string; config?: Partial; options?: Partial; }; declare class Ollama extends ToolCallLLM { supportToolCall: boolean; readonly ollama: Ollama$1; model: string; options: Partial> & Pick; constructor(params: OllamaParams); get metadata(): LLMMetadata; chat(params: LLMChatParamsStreaming): Promise>; chat(params: LLMChatParamsNonStreaming): Promise>; complete(params: LLMCompletionParamsStreaming): Promise>; complete(params: LLMCompletionParamsNonStreaming): Promise; static toTool(tool: BaseTool): Tool; } /** * Convenience function to create a new Ollama instance. * @param init - Optional initialization parameters for the Ollama instance. * @returns A new Ollama instance. */ declare const ollama: (init: ConstructorParameters[0]) => Ollama; type OllamaAgentParams = LLMAgentParams & { model?: string; }; declare class OllamaAgentWorker extends LLMAgentWorker { } declare class OllamaAgent extends LLMAgent { constructor(params: OllamaAgentParams); } declare class OllamaEmbedding extends BaseEmbedding { private readonly llm; constructor(params: OllamaParams); private getEmbedding; getTextEmbedding(text: string): Promise; } export { Ollama, OllamaAgent, OllamaAgentWorker, OllamaEmbedding, ollama }; export type { OllamaAgentParams, OllamaParams };