open-multi-agent/examples
JackChen bc31008f4e feat(llm): add fallback tool-call extraction for local models (#15)
Local models (Ollama, vLLM) sometimes return tool calls as text instead
of using the native tool_calls wire format. This adds a safety-net
extractor that parses tool calls from model text output when native
tool_calls is empty.

- Add text-tool-extractor with support for bare JSON, code fences,
  and Hermes <tool_call> tags
- Wire fallback into OpenAI adapter chat() and stream() paths
- Add onWarning callback when model ignores configured tools
- Add timeoutMs on AgentConfig for per-run abort (local models can
  be slow)
- Add 26 tests for extractor and fallback behavior
- Document local model compatibility in README
2026-04-05 11:49:10 +08: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 Initial release: open-multi-agent v0.1.0 2026-04-01 04:33:15 +08:00
05-copilot-test.ts feat: add GitHub Copilot as LLM provider 2026-04-02 01:45:43 +02:00
06-local-model.ts feat(llm): add fallback tool-call extraction for local models (#15) 2026-04-05 11:49:10 +08:00
07-fan-out-aggregate.ts docs: add examples for local models (Ollama) and fan-out/aggregate pattern 2026-04-03 02:12:05 +08:00
08-gemma4-local.ts docs: merge Gemma 4 examples, reorder README sections 2026-04-03 14:32:48 +08:00
09-structured-output.ts docs: merge Gemma 4 examples, reorder README sections 2026-04-03 14:32:48 +08:00
10-task-retry.ts docs: merge Gemma 4 examples, reorder README sections 2026-04-03 14:32:48 +08:00
11-trace-observability.ts feat: add onTrace observability callback (#18) 2026-04-03 15:28:59 +08:00
12-grok.ts feat(llm): add first-class Grok (xAI) support with dedicated GrokAdapter (#44) 2026-04-04 18:20:55 +08:00
13-gemini.ts chore: support Node >=18, add optional @google/genai peer dependency and API key fallback 2026-04-04 22:12:28 +03:00