adk-ollama
v1.0.0
Published
Google ADK connector for Ollama - use Ollama models with Google's Agent Development Kit
Maintainers
Readme
adk-ollama
Google ADK connector for Ollama - use Ollama models with Google's Agent Development Kit.
Installation
npm install adk-ollamaPeer Dependencies
npm install @google/adk @google/genaiQuick Start
import { Ollama } from "adk-ollama";
import { LlmAgent } from "@google/adk";
const llm = new Ollama({ model: "llama3" });
const agent = new LlmAgent({
name: "my-agent",
model: llm,
description: "Agent powered by Ollama",
});API
Ollama
new Ollama(config: OllamaConfig)OllamaConfig
| Property | Type | Default | Description |
|----------|------|---------|-------------|
| model | string | - | Ollama model name (e.g., "llama3", "phi4-mini:3.8b") |
| baseUrl | string | http://localhost:11434 | Ollama server URL |
| timeout | number | 300000 (5 min) | Request timeout in milliseconds |
Alias
OllamaLlm is deprecated - use Ollama instead.
License
MIT
