- Add request-normalizer.ts to fix malformed tool_calls from clients
- Ensure 'id' field exists (auto-generate if missing)
- Ensure 'type: "function"' field exists
- Convert 'arguments' string to object (Ollama expects object, not string)
- Update response-rewriter.ts for Ollama native tool_calls
- Add missing 'type' field to tool_calls
- Remove Ollama-specific 'function.index' field
- Fix types/ollama.ts: arguments should be object, not string
This enables multi-turn conversations with tool_calls history from OpenClaw
to work correctly with Ollama API.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>