@zaikit/memory-postgres 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.
Files changed (2) hide show
  1. package/README.md +33 -0
  2. package/package.json +2 -2
package/README.md ADDED
@@ -0,0 +1,33 @@
1
+ # @zaikit/memory-postgres
2
+
3
+ Postgres-backed memory provider for ZAIKit agents. Persists conversation threads and messages.
4
+
5
+ ## Install
6
+
7
+ ```bash
8
+ pnpm add @zaikit/memory-postgres
9
+ ```
10
+
11
+ ## Usage
12
+
13
+ ```ts
14
+ import { createAgent } from "@zaikit/core";
15
+ import { createPostgresMemory } from "@zaikit/memory-postgres";
16
+
17
+ const memory = createPostgresMemory({
18
+ connectionString: process.env.DATABASE_URL,
19
+ });
20
+
21
+ const agent = createAgent({
22
+ memory,
23
+ // ...
24
+ });
25
+ ```
26
+
27
+ ## Documentation
28
+
29
+ [https://zaikit.dev](https://zaikit.dev)
30
+
31
+ ## License
32
+
33
+ MIT
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zaikit/memory-postgres",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "files": [
@@ -15,7 +15,7 @@
15
15
  "dependencies": {
16
16
  "ai": "^6",
17
17
  "postgres": "^3",
18
- "@zaikit/core": "0.1.0"
18
+ "@zaikit/core": "0.1.1"
19
19
  },
20
20
  "devDependencies": {
21
21
  "tsup": "^8",