memoryagent-lib 0.1.2__tar.gz → 0.1.3__tar.gz
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.
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/PKG-INFO +23 -22
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/README.md +22 -21
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent_lib.egg-info/PKG-INFO +23 -22
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/pyproject.toml +1 -1
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/__init__.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/confidence.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/config.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/consolidation.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/examples/export_memory.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/examples/memory_api_server.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/examples/minimal.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/examples/openai_agent.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/indexers.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/models.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/policy.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/retrieval.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/storage/base.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/storage/in_memory.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/storage/local_disk.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/system.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/utils.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent/workers.py +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent_lib.egg-info/SOURCES.txt +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent_lib.egg-info/dependency_links.txt +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent_lib.egg-info/requires.txt +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent_lib.egg-info/top_level.txt +0 -0
- {memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: memoryagent-lib
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Add your description here
|
|
5
5
|
Author-email: Jiawei Zheng <jw.zhengai@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -13,10 +13,8 @@ Requires-Dist: openai>=2.16.0
|
|
|
13
13
|
Requires-Dist: pydantic>=2.0
|
|
14
14
|
Requires-Dist: sqlite-vec>=0.1.6
|
|
15
15
|
|
|
16
|
-
#
|
|
17
|
-
|
|
18
16
|
<div align="center">
|
|
19
|
-
<img src="https://raw.githubusercontent.com/jia-wei-zheng/MemoryAgent/refs/heads/master/memoryagent_logo.jpg
|
|
17
|
+
<img src="https://raw.githubusercontent.com/jia-wei-zheng/MemoryAgent/refs/heads/master/memoryagent_logo.jpg" alt="MemoryAgent" width="500">
|
|
20
18
|
<h1>MemoryAgent: An Open, Modular Memory Framework for Agents (Beta)</h1>
|
|
21
19
|
</div>
|
|
22
20
|
|
|
@@ -123,23 +121,6 @@ config = MemorySystemConfig(
|
|
|
123
121
|
)
|
|
124
122
|
```
|
|
125
123
|
|
|
126
|
-
## Policies
|
|
127
|
-
### Conversation storage policy
|
|
128
|
-
`HeuristicMemoryPolicy` decides whether a turn should be stored and whether it becomes episodic or semantic memory.
|
|
129
|
-
|
|
130
|
-
### Routing policy
|
|
131
|
-
`MemoryRoutingPolicy` decides where a memory should be written:
|
|
132
|
-
- **Hot** metadata store
|
|
133
|
-
- **Vector index**
|
|
134
|
-
- **Feature store** (perceptual)
|
|
135
|
-
- **Cold** archive (via workers)
|
|
136
|
-
|
|
137
|
-
## Background Workers
|
|
138
|
-
- `ConsolidationWorker`: working → episodic/semantic
|
|
139
|
-
- `ArchiverWorker`: hot → cold + archive index
|
|
140
|
-
- `RehydratorWorker`: cold → hot (based on access)
|
|
141
|
-
- `Compactor`: cleanup/TTL
|
|
142
|
-
|
|
143
124
|
## Examples
|
|
144
125
|
### OpenAI Agent (CLI)
|
|
145
126
|
```bash
|
|
@@ -160,13 +141,31 @@ http://127.0.0.1:8000/memory_viz.html
|
|
|
160
141
|
|
|
161
142
|
An example (System records semantic memory and updating working memory):
|
|
162
143
|
|
|
163
|
-

|
|
164
145
|
|
|
165
146
|
|
|
166
147
|
The page calls:
|
|
167
148
|
- `GET /api/memory?owner=user-001`
|
|
168
149
|
- `POST /api/chat`
|
|
169
150
|
|
|
151
|
+
## Policies
|
|
152
|
+
### Conversation storage policy
|
|
153
|
+
`HeuristicMemoryPolicy` decides whether a turn should be stored and whether it becomes episodic or semantic memory.
|
|
154
|
+
|
|
155
|
+
### Routing policy
|
|
156
|
+
`MemoryRoutingPolicy` decides where a memory should be written:
|
|
157
|
+
- **Hot** metadata store
|
|
158
|
+
- **Vector index**
|
|
159
|
+
- **Feature store** (perceptual)
|
|
160
|
+
- **Cold** archive (via workers)
|
|
161
|
+
|
|
162
|
+
## Background Workers
|
|
163
|
+
- `ConsolidationWorker`: working -> episodic/semantic
|
|
164
|
+
- `ArchiverWorker`: hot -> cold + archive index
|
|
165
|
+
- `RehydratorWorker`: cold -> hot (based on access)
|
|
166
|
+
- `Compactor`: cleanup/TTL
|
|
167
|
+
|
|
168
|
+
|
|
170
169
|
## Data Stores
|
|
171
170
|
- **Hot metadata**: `.memoryagent_hot.sqlite`
|
|
172
171
|
- **Vector index**: `.memoryagent_vectors.sqlite` (sqlite-vec)
|
|
@@ -176,6 +175,7 @@ The page calls:
|
|
|
176
175
|
## Data Root (Installed Usage)
|
|
177
176
|
The system auto-detects a project root by walking up from the current working directory and looking for `pyproject.toml` or `.git`. If it can’t find one, it uses the current directory.
|
|
178
177
|
|
|
178
|
+
|
|
179
179
|
## Configuration
|
|
180
180
|
See `memoryagent/config.py` for defaults:
|
|
181
181
|
- `working_ttl_seconds`
|
|
@@ -187,3 +187,4 @@ See `memoryagent/config.py` for defaults:
|
|
|
187
187
|
- Episodic/semantic memories are candidates for cold archive.
|
|
188
188
|
|
|
189
189
|
## License
|
|
190
|
+
MIT License
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
#
|
|
2
|
-
|
|
3
1
|
<div align="center">
|
|
4
|
-
<img src="https://raw.githubusercontent.com/jia-wei-zheng/MemoryAgent/refs/heads/master/memoryagent_logo.jpg
|
|
2
|
+
<img src="https://raw.githubusercontent.com/jia-wei-zheng/MemoryAgent/refs/heads/master/memoryagent_logo.jpg" alt="MemoryAgent" width="500">
|
|
5
3
|
<h1>MemoryAgent: An Open, Modular Memory Framework for Agents (Beta)</h1>
|
|
6
4
|
</div>
|
|
7
5
|
|
|
@@ -108,23 +106,6 @@ config = MemorySystemConfig(
|
|
|
108
106
|
)
|
|
109
107
|
```
|
|
110
108
|
|
|
111
|
-
## Policies
|
|
112
|
-
### Conversation storage policy
|
|
113
|
-
`HeuristicMemoryPolicy` decides whether a turn should be stored and whether it becomes episodic or semantic memory.
|
|
114
|
-
|
|
115
|
-
### Routing policy
|
|
116
|
-
`MemoryRoutingPolicy` decides where a memory should be written:
|
|
117
|
-
- **Hot** metadata store
|
|
118
|
-
- **Vector index**
|
|
119
|
-
- **Feature store** (perceptual)
|
|
120
|
-
- **Cold** archive (via workers)
|
|
121
|
-
|
|
122
|
-
## Background Workers
|
|
123
|
-
- `ConsolidationWorker`: working → episodic/semantic
|
|
124
|
-
- `ArchiverWorker`: hot → cold + archive index
|
|
125
|
-
- `RehydratorWorker`: cold → hot (based on access)
|
|
126
|
-
- `Compactor`: cleanup/TTL
|
|
127
|
-
|
|
128
109
|
## Examples
|
|
129
110
|
### OpenAI Agent (CLI)
|
|
130
111
|
```bash
|
|
@@ -145,13 +126,31 @@ http://127.0.0.1:8000/memory_viz.html
|
|
|
145
126
|
|
|
146
127
|
An example (System records semantic memory and updating working memory):
|
|
147
128
|
|
|
148
|
-

|
|
149
130
|
|
|
150
131
|
|
|
151
132
|
The page calls:
|
|
152
133
|
- `GET /api/memory?owner=user-001`
|
|
153
134
|
- `POST /api/chat`
|
|
154
135
|
|
|
136
|
+
## Policies
|
|
137
|
+
### Conversation storage policy
|
|
138
|
+
`HeuristicMemoryPolicy` decides whether a turn should be stored and whether it becomes episodic or semantic memory.
|
|
139
|
+
|
|
140
|
+
### Routing policy
|
|
141
|
+
`MemoryRoutingPolicy` decides where a memory should be written:
|
|
142
|
+
- **Hot** metadata store
|
|
143
|
+
- **Vector index**
|
|
144
|
+
- **Feature store** (perceptual)
|
|
145
|
+
- **Cold** archive (via workers)
|
|
146
|
+
|
|
147
|
+
## Background Workers
|
|
148
|
+
- `ConsolidationWorker`: working -> episodic/semantic
|
|
149
|
+
- `ArchiverWorker`: hot -> cold + archive index
|
|
150
|
+
- `RehydratorWorker`: cold -> hot (based on access)
|
|
151
|
+
- `Compactor`: cleanup/TTL
|
|
152
|
+
|
|
153
|
+
|
|
155
154
|
## Data Stores
|
|
156
155
|
- **Hot metadata**: `.memoryagent_hot.sqlite`
|
|
157
156
|
- **Vector index**: `.memoryagent_vectors.sqlite` (sqlite-vec)
|
|
@@ -161,6 +160,7 @@ The page calls:
|
|
|
161
160
|
## Data Root (Installed Usage)
|
|
162
161
|
The system auto-detects a project root by walking up from the current working directory and looking for `pyproject.toml` or `.git`. If it can’t find one, it uses the current directory.
|
|
163
162
|
|
|
163
|
+
|
|
164
164
|
## Configuration
|
|
165
165
|
See `memoryagent/config.py` for defaults:
|
|
166
166
|
- `working_ttl_seconds`
|
|
@@ -172,3 +172,4 @@ See `memoryagent/config.py` for defaults:
|
|
|
172
172
|
- Episodic/semantic memories are candidates for cold archive.
|
|
173
173
|
|
|
174
174
|
## License
|
|
175
|
+
MIT License
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: memoryagent-lib
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.3
|
|
4
4
|
Summary: Add your description here
|
|
5
5
|
Author-email: Jiawei Zheng <jw.zhengai@gmail.com>
|
|
6
6
|
License: MIT
|
|
@@ -13,10 +13,8 @@ Requires-Dist: openai>=2.16.0
|
|
|
13
13
|
Requires-Dist: pydantic>=2.0
|
|
14
14
|
Requires-Dist: sqlite-vec>=0.1.6
|
|
15
15
|
|
|
16
|
-
#
|
|
17
|
-
|
|
18
16
|
<div align="center">
|
|
19
|
-
<img src="https://raw.githubusercontent.com/jia-wei-zheng/MemoryAgent/refs/heads/master/memoryagent_logo.jpg
|
|
17
|
+
<img src="https://raw.githubusercontent.com/jia-wei-zheng/MemoryAgent/refs/heads/master/memoryagent_logo.jpg" alt="MemoryAgent" width="500">
|
|
20
18
|
<h1>MemoryAgent: An Open, Modular Memory Framework for Agents (Beta)</h1>
|
|
21
19
|
</div>
|
|
22
20
|
|
|
@@ -123,23 +121,6 @@ config = MemorySystemConfig(
|
|
|
123
121
|
)
|
|
124
122
|
```
|
|
125
123
|
|
|
126
|
-
## Policies
|
|
127
|
-
### Conversation storage policy
|
|
128
|
-
`HeuristicMemoryPolicy` decides whether a turn should be stored and whether it becomes episodic or semantic memory.
|
|
129
|
-
|
|
130
|
-
### Routing policy
|
|
131
|
-
`MemoryRoutingPolicy` decides where a memory should be written:
|
|
132
|
-
- **Hot** metadata store
|
|
133
|
-
- **Vector index**
|
|
134
|
-
- **Feature store** (perceptual)
|
|
135
|
-
- **Cold** archive (via workers)
|
|
136
|
-
|
|
137
|
-
## Background Workers
|
|
138
|
-
- `ConsolidationWorker`: working → episodic/semantic
|
|
139
|
-
- `ArchiverWorker`: hot → cold + archive index
|
|
140
|
-
- `RehydratorWorker`: cold → hot (based on access)
|
|
141
|
-
- `Compactor`: cleanup/TTL
|
|
142
|
-
|
|
143
124
|
## Examples
|
|
144
125
|
### OpenAI Agent (CLI)
|
|
145
126
|
```bash
|
|
@@ -160,13 +141,31 @@ http://127.0.0.1:8000/memory_viz.html
|
|
|
160
141
|
|
|
161
142
|
An example (System records semantic memory and updating working memory):
|
|
162
143
|
|
|
163
|
-

|
|
164
145
|
|
|
165
146
|
|
|
166
147
|
The page calls:
|
|
167
148
|
- `GET /api/memory?owner=user-001`
|
|
168
149
|
- `POST /api/chat`
|
|
169
150
|
|
|
151
|
+
## Policies
|
|
152
|
+
### Conversation storage policy
|
|
153
|
+
`HeuristicMemoryPolicy` decides whether a turn should be stored and whether it becomes episodic or semantic memory.
|
|
154
|
+
|
|
155
|
+
### Routing policy
|
|
156
|
+
`MemoryRoutingPolicy` decides where a memory should be written:
|
|
157
|
+
- **Hot** metadata store
|
|
158
|
+
- **Vector index**
|
|
159
|
+
- **Feature store** (perceptual)
|
|
160
|
+
- **Cold** archive (via workers)
|
|
161
|
+
|
|
162
|
+
## Background Workers
|
|
163
|
+
- `ConsolidationWorker`: working -> episodic/semantic
|
|
164
|
+
- `ArchiverWorker`: hot -> cold + archive index
|
|
165
|
+
- `RehydratorWorker`: cold -> hot (based on access)
|
|
166
|
+
- `Compactor`: cleanup/TTL
|
|
167
|
+
|
|
168
|
+
|
|
170
169
|
## Data Stores
|
|
171
170
|
- **Hot metadata**: `.memoryagent_hot.sqlite`
|
|
172
171
|
- **Vector index**: `.memoryagent_vectors.sqlite` (sqlite-vec)
|
|
@@ -176,6 +175,7 @@ The page calls:
|
|
|
176
175
|
## Data Root (Installed Usage)
|
|
177
176
|
The system auto-detects a project root by walking up from the current working directory and looking for `pyproject.toml` or `.git`. If it can’t find one, it uses the current directory.
|
|
178
177
|
|
|
178
|
+
|
|
179
179
|
## Configuration
|
|
180
180
|
See `memoryagent/config.py` for defaults:
|
|
181
181
|
- `working_ttl_seconds`
|
|
@@ -187,3 +187,4 @@ See `memoryagent/config.py` for defaults:
|
|
|
187
187
|
- Episodic/semantic memories are candidates for cold archive.
|
|
188
188
|
|
|
189
189
|
## License
|
|
190
|
+
MIT License
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
{memoryagent_lib-0.1.2 → memoryagent_lib-0.1.3}/memoryagent_lib.egg-info/dependency_links.txt
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|