getmnemo-anthropic 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/dist/memory-tool.d.ts +1 -1
- package/dist/memory-tool.js +1 -1
- package/package.json +1 -1
- package/src/memory-tool.ts +2 -2
package/README.md
CHANGED
|
@@ -34,7 +34,7 @@ const memory = new Mnemo({
|
|
|
34
34
|
const agent = withMemoryTool({
|
|
35
35
|
client: claude,
|
|
36
36
|
getmnemo: memory,
|
|
37
|
-
model: "claude-sonnet-4-
|
|
37
|
+
model: "claude-sonnet-4-6",
|
|
38
38
|
thinkingBudgetTokens: 4000,
|
|
39
39
|
});
|
|
40
40
|
|
|
@@ -68,7 +68,7 @@ console.log("memory tool calls:", result.memoryToolCalls);
|
|
|
68
68
|
| --- | --- | --- | --- |
|
|
69
69
|
| `client` | `Anthropic` | — | An `@anthropic-ai/sdk` client (anything with `messages.create`). |
|
|
70
70
|
| `getmnemo` | `Mnemo` | — | A `Mnemo` instance from `getmnemo`. |
|
|
71
|
-
| `model` | `string` | `"claude-sonnet-4-
|
|
71
|
+
| `model` | `string` | `"claude-sonnet-4-6"` | Default model; override per call. |
|
|
72
72
|
| `maxTokens` | `number` | `1024` | Default `max_tokens`; override per call. |
|
|
73
73
|
| `searchLimit` | `number` | `5` | Default top-k for memory search (clamped to 1–50). |
|
|
74
74
|
| `cacheSystem` | `boolean` | `true` | Wrap the system prompt with `cache_control: { type: "ephemeral" }`. |
|
package/dist/memory-tool.d.ts
CHANGED
|
@@ -31,7 +31,7 @@ interface ChatMessage {
|
|
|
31
31
|
export interface WithMemoryToolOptions {
|
|
32
32
|
client: AnthropicLike;
|
|
33
33
|
getmnemo: Mnemo;
|
|
34
|
-
/** Defaults to claude-sonnet-4-
|
|
34
|
+
/** Defaults to claude-sonnet-4-6. Override per call too. */
|
|
35
35
|
model?: string;
|
|
36
36
|
/** Defaults to 1024. */
|
|
37
37
|
maxTokens?: number;
|
package/dist/memory-tool.js
CHANGED
|
@@ -8,7 +8,7 @@ export const MEMORY_TOOL_NAME = "memory";
|
|
|
8
8
|
*/
|
|
9
9
|
export function withMemoryTool(options) {
|
|
10
10
|
const defaults = {
|
|
11
|
-
model: options.model ?? "claude-sonnet-4-
|
|
11
|
+
model: options.model ?? "claude-sonnet-4-6",
|
|
12
12
|
maxTokens: options.maxTokens ?? 1024,
|
|
13
13
|
searchLimit: options.searchLimit ?? 5,
|
|
14
14
|
cacheSystem: options.cacheSystem ?? true,
|
package/package.json
CHANGED
package/src/memory-tool.ts
CHANGED
|
@@ -33,7 +33,7 @@ interface ChatMessage {
|
|
|
33
33
|
export interface WithMemoryToolOptions {
|
|
34
34
|
client: AnthropicLike;
|
|
35
35
|
getmnemo: Mnemo;
|
|
36
|
-
/** Defaults to claude-sonnet-4-
|
|
36
|
+
/** Defaults to claude-sonnet-4-6. Override per call too. */
|
|
37
37
|
model?: string;
|
|
38
38
|
/** Defaults to 1024. */
|
|
39
39
|
maxTokens?: number;
|
|
@@ -86,7 +86,7 @@ export function withMemoryTool(
|
|
|
86
86
|
options: WithMemoryToolOptions,
|
|
87
87
|
): WithMemoryToolWrapper {
|
|
88
88
|
const defaults = {
|
|
89
|
-
model: options.model ?? "claude-sonnet-4-
|
|
89
|
+
model: options.model ?? "claude-sonnet-4-6",
|
|
90
90
|
maxTokens: options.maxTokens ?? 1024,
|
|
91
91
|
searchLimit: options.searchLimit ?? 5,
|
|
92
92
|
cacheSystem: options.cacheSystem ?? true,
|