UNPKG

agente-toolkit

Version:

A barebones TypeScript library for building AI agents with intelligent tool execution and self-correction capabilities

29 lines 923 B
import { BaseAdapter, ToolExecutionResult } from '../base/base'; import { Tool } from '../../../core/tools/types/Tool'; /** * Ollama adapter with native tool support * Uses Ollama's built-in function calling when available */ export declare class OllamaAdapter extends BaseAdapter { name: string; supportsNativeTools: boolean; private baseUrl; private model; constructor(baseUrl?: string, model?: string); /** * Text completion for general prompts */ complete(prompt: string, options?: { json?: boolean; schema?: Record<string, any>; }): Promise<string>; /** * Execute tools with a prompt - uses native Ollama function calling */ executeWithTools(prompt: string, tools: Tool[]): Promise<ToolExecutionResult>; /** * Make a request to Ollama's chat API */ private makeOllamaRequest; } //# sourceMappingURL=ollamaAdapter.d.ts.map