@alineo-labs/memory 0.3.0 → 0.3.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.
Files changed (2) hide show
  1. package/README.md +4 -1
  2. package/package.json +2 -2
package/README.md CHANGED
@@ -222,10 +222,13 @@ memory and (if a query is given and a semantic provider is configured) its most
222
222
  semantic memories — ready to prepend to a prompt:
223
223
 
224
224
  ```ts
225
+ import { textOnly } from "alineo";
225
226
  import { buildContextSnippet } from "@alineo-labs/memory";
226
227
 
227
228
  const context = await buildContextSnippet(memory, ref, { query: userMessage, topK: 5 });
228
- for await (const chunk of agent.prompt(context ? `${context}\n\n${userMessage}` : userMessage)) {
229
+ for await (const chunk of textOnly(
230
+ agent.prompt(context ? `${context}\n\n${userMessage}` : userMessage),
231
+ )) {
229
232
  process.stdout.write(chunk);
230
233
  }
231
234
  ```
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alineo-labs/memory",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "license": "Apache-2.0",
5
5
  "repository": {
6
6
  "type": "git",
@@ -29,7 +29,7 @@
29
29
  "test:watch": "vitest"
30
30
  },
31
31
  "dependencies": {
32
- "@alineo-labs/core": "0.5.0"
32
+ "@alineo-labs/core": "0.6.0"
33
33
  },
34
34
  "devDependencies": {
35
35
  "bun-types": "1.4.2",