open-multi-agent/examples
Masteromanlol 5a384a9315 Add Ollama LLM adapter and support
Introduce a new OllamaAdapter (src/llm/ollama.ts) implementing LLMAdapter with chat and streaming support, converting between the framework's ContentBlock types and Ollama (OpenAI-compatible) chat completions. Wire the adapter into the factory (src/llm/adapter.ts) and extend provider types (src/types.ts) to include 'ollama'. Update example (examples/04-multi-model-team.ts) to allow selecting Ollama as a model/provider option. Ollama adapter defaults its base URL from OLLAMA_BASE_URL or http://localhost:11434 and handles tool calls, tool results, images, and finish reason normalization.
2026-04-01 18:37:26 -06:00
..
01-single-agent.ts Initial release: open-multi-agent v0.1.0 2026-04-01 04:33:15 +08:00
02-team-collaboration.ts Initial release: open-multi-agent v0.1.0 2026-04-01 04:33:15 +08:00
03-task-pipeline.ts Initial release: open-multi-agent v0.1.0 2026-04-01 04:33:15 +08:00
04-multi-model-team.ts Add Ollama LLM adapter and support 2026-04-01 18:37:26 -06:00