ts-v3.0.9

mountain-loop/yaakts-v3.0.9Jun 17, 2026by whysosaket

AI Summary

This release fixes critical issues with Anthropic's tool_choice formatting, ensures custom metadata is preserved during updates, and bumps esbuild for security.

Key Highlights

  • Fix Anthropic tool_choice format
  • Preserve custom metadata during update
  • Bump esbuild for security
  • Updated default model to claude-sonnet-4-6

New Features

  • Fix Anthropic tool response parsing
  • Add LLMConfig parameters (temperature, topP, maxTokens)
  • Preserve user-defined schema keys in export

Full Release Notes

## Mem0 Node SDK (v3.0.9)

**Bug Fixes:**
- **LLMs:** Fix Anthropic `tool_choice` format — was incorrectly sent as a bare string `"auto"` (rejected by the API); now correctly sent as `{ type: "auto" }`. Also fixes tool response parsing: `tool_use` blocks are now parsed into `toolCalls` objects instead of throwing. Updated default model to `claude-sonnet-4-6` and default `max_tokens` to `2000` to match the Python provider. Added `temperature`, `topP`, and `maxTokens` to `LLMConfig` so Anthropic params can be configured ([#5537](https://github.com/mem0ai/mem0/pull/5537))
- **Memory (OSS):** Preserve custom metadata fields during `update()` — fields such as `category`, `priority`, and other user-defined keys were previously dropped on update; the existing payload is now spread before applying the new data ([#5480](https://github.com/mem0ai/mem0/pull/5480))
- **Client:** Preserve user-defined schema keys in `createMemoryExport` ([#5594](https://github.com/mem0ai/mem0/pull/5594))

**Security:**
- **Dependencies:** Bump `esbuild` to `>=0.28.1` across all npm packages via pnpm overrides to remediate upstream vulnerability ([#5563](https://github.com/mem0ai/mem0/pull/5563))