From 56ac4c656feaa022999773b5c5105f8fdd3c7728 Mon Sep 17 00:00:00 2001 From: Sreeram Sreedhar Date: Mon, 13 Apr 2026 23:07:44 -0700 Subject: [PATCH] updated readme --- packages/tools/README.md | 32 -------------------------------- 1 file changed, 32 deletions(-) diff --git a/packages/tools/README.md b/packages/tools/README.md index d3306a8f..0c622af3 100644 --- a/packages/tools/README.md +++ b/packages/tools/README.md @@ -409,42 +409,10 @@ const addResult = await tools.addMemory({ ### Mastra Usage -> **⚠️ Breaking Change in v2.0.0**: The Mastra integration API has been updated to use object-based parameters instead of positional parameters for better clarity. See the migration guide below. - Add persistent memory to [Mastra](https://mastra.ai) AI agents. The integration provides processors that: - **Input Processor**: Fetches relevant memories and injects them into the system prompt before LLM calls - **Output Processor**: Optionally saves conversations to Supermemory after responses -#### Migration from v1.x to v2.0.0 - -**v1.x (old API with positional parameters):** -```typescript -// Old API - DEPRECATED -withSupermemory(config, "user-123", "conv-456", { mode: "full" }) -new SupermemoryInputProcessor("user-123", "conv-456", { mode: "full" }) -createSupermemoryProcessors("user-123", "conv-456", { mode: "full" }) -``` - -**v2.0.0 (new API with object parameters):** -```typescript -// New API - clearer with explicit key-value pairs -withSupermemory(config, { - containerTag: "user-123", - customId: "conv-456", - mode: "full" -}) -new SupermemoryInputProcessor({ - containerTag: "user-123", - customId: "conv-456", - mode: "full" -}) -createSupermemoryProcessors({ - containerTag: "user-123", - customId: "conv-456", - mode: "full" -}) -``` - #### Quick Start with `withSupermemory` Wrapper The simplest way to add memory to a Mastra agent - wrap your config before creating the Agent: