@redis/vercel-ai-sdk 0.1.0 → 0.1.1
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/CHANGELOG.md +1 -1
- package/LICENSE +1 -1
- package/README.md +3 -3
- package/TOOLS.md +3 -3
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
-
- Initial standalone
|
|
5
|
+
- Initial standalone `@redis/vercel-ai-sdk` library for AI SDK 7.
|
|
6
6
|
- Added the unified root `createRedisAgentMemory({ serverUrl, storeId, apiKey,
|
|
7
7
|
scope?, model?, allowDeletes?, namespaceTools?, timeoutMs? })` factory.
|
|
8
8
|
- Added `memory.tools({ scope? })` for explicit AI SDK memory tools and
|
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c) 2026 ai-sdk
|
|
3
|
+
Copyright (c) 2026 @redis/vercel-ai-sdk contributors
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@ Both are created by the same server-side `createRedisAgentMemory(...)` factory.
|
|
|
10
10
|
|
|
11
11
|
| | Automatic-memory model | Tools |
|
|
12
12
|
| --- | --- | --- |
|
|
13
|
-
| Entry point |
|
|
13
|
+
| Entry point | `@redis/vercel-ai-sdk` | `@redis/vercel-ai-sdk` |
|
|
14
14
|
| Setup | `memory.model({ scope?, model?, ...options })` | `memory.tools({ scope? })` |
|
|
15
15
|
| Agent integration | Pass a fresh returned model as the request's `model` | Pass the returned tool map as `tools` alongside your model |
|
|
16
16
|
| Recall and history | Restores the scoped session and injects recalled personal memories before inference by default | The model chooses memory tools; the application manages input history |
|
|
@@ -43,7 +43,7 @@ Other AI SDK 7-compatible configured models work with the same APIs. Model-name
|
|
|
43
43
|
```ts
|
|
44
44
|
import { anthropic } from '@ai-sdk/anthropic';
|
|
45
45
|
import { ToolLoopAgent, isStepCount } from 'ai';
|
|
46
|
-
import { createRedisAgentMemory } from 'ai-sdk
|
|
46
|
+
import { createRedisAgentMemory } from '@redis/vercel-ai-sdk';
|
|
47
47
|
|
|
48
48
|
const memory = createRedisAgentMemory({
|
|
49
49
|
serverUrl: process.env.AGENT_MEMORY_URL,
|
|
@@ -177,7 +177,7 @@ npm run check
|
|
|
177
177
|
npm pack
|
|
178
178
|
```
|
|
179
179
|
|
|
180
|
-
Install the resulting tarball in your application with `npm install /path/to/vercel-ai-sdk-0.1.0.tgz`. It contains the compiled library, declarations, source maps, source files, and package documentation. No demo application or credentials are included.
|
|
180
|
+
Install the resulting tarball in your application with `npm install /path/to/redis-vercel-ai-sdk-0.1.0.tgz`. It contains the compiled library, declarations, source maps, source files, and package documentation. No demo application or credentials are included.
|
|
181
181
|
|
|
182
182
|
See [CONTRIBUTING.md](https://github.com/redis/vercel-ai-sdk/blob/main/CONTRIBUTING.md) for the repository layout, commands, and release process. The tests use mocked HTTP and model boundaries and do not require API credentials.
|
|
183
183
|
|
package/TOOLS.md
CHANGED
|
@@ -24,7 +24,7 @@ Tools do not require a configured model.
|
|
|
24
24
|
```ts
|
|
25
25
|
import { anthropic } from '@ai-sdk/anthropic';
|
|
26
26
|
import { ToolLoopAgent, isStepCount } from 'ai';
|
|
27
|
-
import { createRedisAgentMemory, instructions } from 'ai-sdk
|
|
27
|
+
import { createRedisAgentMemory, instructions } from '@redis/vercel-ai-sdk';
|
|
28
28
|
|
|
29
29
|
const userId = 'user-123';
|
|
30
30
|
const sessionId = 'conversation-456';
|
|
@@ -68,7 +68,7 @@ Keep session-write tools out of `activeTools` to avoid duplicate recording.
|
|
|
68
68
|
```ts
|
|
69
69
|
import { anthropic } from '@ai-sdk/anthropic';
|
|
70
70
|
import { ToolLoopAgent, isStepCount } from 'ai';
|
|
71
|
-
import { createRedisAgentMemory, instructions } from 'ai-sdk
|
|
71
|
+
import { createRedisAgentMemory, instructions } from '@redis/vercel-ai-sdk';
|
|
72
72
|
|
|
73
73
|
const userId = 'user-123';
|
|
74
74
|
const sessionId = 'conversation-456';
|
|
@@ -116,7 +116,7 @@ See [Recording session events](#recording-session-events) for input requirements
|
|
|
116
116
|
Its enumerable properties are exclusively tools; credentials and the SDK client remain in closures.
|
|
117
117
|
|
|
118
118
|
```ts
|
|
119
|
-
import { createRedisAgentMemory } from 'ai-sdk
|
|
119
|
+
import { createRedisAgentMemory } from '@redis/vercel-ai-sdk';
|
|
120
120
|
|
|
121
121
|
const memory = createRedisAgentMemory({ serverUrl, storeId, apiKey });
|
|
122
122
|
const memoryTools = memory.tools({ scope: { userId } });
|