Commit 7a43443
Memory Types, Pluggable Processors, and Function App Hand-off (#7)
* Update CosmosMemoryClient with filtering, tagging, salience, procedural/episodic retrieval, and ProcessingPipeline
- Replace ProcessingClient (Azure Durable Functions HTTP) with local ProcessingPipeline
- Add LLMClient alongside EmbeddingsClient; remove adf_endpoint/adf_key params
- Add tags, ttl, salience parameters to add_local() and add_cosmos()
- Add tag filters (AND/OR/NOT), include_superseded, min_salience to get_memories(),
search_cosmos(), and get_thread()
- Add add_tags() and remove_tags() for tag management
- Add get_procedural_memories() and search_episodic_memories() retrieval
- Add build_procedural_context() and build_episodic_context() formatters
- Add extract_memories(), deduplicate_facts() pipeline methods
- Enable per-document TTL via default_ttl=-1 in create_memory_store()
- Export LLMClient from __init__.py
- Update tests for new default superseded_by filter and pipeline delegation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Mirror sync CosmosMemoryClient changes to AsyncCosmosMemoryClient
- Remove adf_endpoint/adf_key params; add llm_model param with LLMClient
- Add tags, ttl, salience params to add_local() and add_cosmos()
- Add tags, any_tags, exclude_tags, include_superseded, min_salience to
get_memories(), search_cosmos(), get_thread()
- Add new methods: add_tags(), remove_tags(), get_procedural_memories(),
search_episodic_memories(), build_procedural_context(),
build_episodic_context(), extract_memories(), deduplicate_facts()
- Replace ADF-based processing with ProcessingPipeline delegation
(uses sync Cosmos container internally)
- Pass default_ttl=-1 in create_memory_store()
- Delete aio/processing.py (replaced by pipeline.py)
- Update aio/__init__.py exports
- Update async client tests to match new API
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Adding a in processor and durable processor
* Resolving comments and adding some code improvements
* Resolving comments and adding some code improvements
* Fixing builds
* Fixing builds
* Resolving comments and adding some code improvements
* making some code improvements
* making some code improvements
* Fixing builds
* code improvements
* code improvements
* code improvements
* Initial commit for the policy changes for multi vector search
* code improvements
---------
Co-authored-by: Aayush Kataria <aayushkataria@Aayushs-MacBook-Pro-2.local>
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 94ae8db commit 7a43443
126 files changed
Lines changed: 20260 additions & 5526 deletions
File tree
- Docs
- Samples
- agent_memory_toolkit
- aio
- processors
- processors
- prompts
- azure_functions
- prompts
- function_app
- _vendor
- orchestrators
- triggers
- infra
- modules
- tests
- integration
- unit
- aio
- processors
- function_app
- processors
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
8 | 13 | | |
9 | 14 | | |
10 | 15 | | |
| |||
19 | 24 | | |
20 | 25 | | |
21 | 26 | | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
26 | 31 | | |
27 | 32 | | |
28 | 33 | | |
29 | 34 | | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
35 | 40 | | |
36 | | - | |
37 | | - | |
38 | | - | |
39 | | - | |
40 | | - | |
| 41 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
| |||
109 | 111 | | |
110 | 112 | | |
111 | 113 | | |
112 | | - | |
113 | | - | |
114 | | - | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
115 | 121 | | |
116 | 122 | | |
117 | 123 | | |
118 | 124 | | |
| 125 | + | |
| 126 | + | |
119 | 127 | | |
120 | 128 | | |
121 | 129 | | |
| |||
139 | 147 | | |
140 | 148 | | |
141 | 149 | | |
142 | | - | |
| 150 | + | |
143 | 151 | | |
144 | 152 | | |
145 | 153 | | |
146 | 154 | | |
147 | 155 | | |
| 156 | + | |
| 157 | + | |
148 | 158 | | |
149 | | - | |
| 159 | + | |
150 | 160 | | |
151 | 161 | | |
152 | 162 | | |
| |||
175 | 185 | | |
176 | 186 | | |
177 | 187 | | |
178 | | - | |
179 | | - | |
180 | | - | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
181 | 191 | | |
182 | | - | |
183 | | - | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
184 | 195 | | |
185 | 196 | | |
186 | 197 | | |
| |||
195 | 206 | | |
196 | 207 | | |
197 | 208 | | |
198 | | - | |
| 209 | + | |
199 | 210 | | |
200 | 211 | | |
201 | 212 | | |
202 | | - | |
| 213 | + | |
203 | 214 | | |
204 | | - | |
205 | | - | |
| 215 | + | |
| 216 | + | |
206 | 217 | | |
207 | 218 | | |
208 | 219 | | |
209 | 220 | | |
210 | 221 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 222 | + | |
| 223 | + | |
214 | 224 | | |
215 | 225 | | |
216 | 226 | | |
| |||
225 | 235 | | |
226 | 236 | | |
227 | 237 | | |
228 | | - | |
| 238 | + | |
229 | 239 | | |
230 | 240 | | |
231 | 241 | | |
232 | | - | |
| 242 | + | |
233 | 243 | | |
234 | | - | |
235 | | - | |
| 244 | + | |
| 245 | + | |
236 | 246 | | |
237 | 247 | | |
238 | 248 | | |
239 | 249 | | |
240 | 250 | | |
241 | | - | |
242 | | - | |
243 | | - | |
| 251 | + | |
| 252 | + | |
244 | 253 | | |
245 | 254 | | |
246 | 255 | | |
247 | 256 | | |
248 | | - | |
249 | | - | |
250 | | - | |
251 | | - | |
252 | | - | |
253 | | - | |
| 257 | + | |
254 | 258 | | |
255 | 259 | | |
256 | 260 | | |
| |||
269 | 273 | | |
270 | 274 | | |
271 | 275 | | |
272 | | - | |
273 | | - | |
274 | | - | |
275 | | - | |
276 | | - | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
277 | 281 | | |
278 | 282 | | |
279 | 283 | | |
| |||
294 | 298 | | |
295 | 299 | | |
296 | 300 | | |
297 | | - | |
| 301 | + | |
| 302 | + | |
| 303 | + | |
298 | 304 | | |
299 | 305 | | |
300 | | - | |
301 | | - | |
302 | | - | |
303 | | - | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
304 | 314 | | |
305 | | - | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
306 | 321 | | |
307 | 322 | | |
308 | 323 | | |
| |||
335 | 350 | | |
336 | 351 | | |
337 | 352 | | |
338 | | - | |
| 353 | + | |
339 | 354 | | |
340 | 355 | | |
341 | 356 | | |
| |||
366 | 381 | | |
367 | 382 | | |
368 | 383 | | |
369 | | - | |
| 384 | + | |
370 | 385 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | | - | |
| 14 | + | |
16 | 15 | | |
17 | | - | |
18 | | - | |
19 | | - | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
20 | 19 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
25 | 23 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
33 | 24 | | |
| 25 | + | |
34 | 26 | | |
35 | 27 | | |
36 | 28 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
84 | 84 | | |
85 | 85 | | |
86 | 86 | | |
| |||
166 | 166 | | |
167 | 167 | | |
168 | 168 | | |
169 | | - | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
209 | 209 | | |
210 | 210 | | |
211 | 211 | | |
212 | | - | |
| 212 | + | |
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
| |||
0 commit comments