(&self, scope: Option<JsScope>)
| 274 | /// Get all memories matching a scope. |
| 275 | #[napi] |
| 276 | pub async fn get_all(&self, scope: Option<JsScope>) -> Result<Vec<JsMemory>> { |
| 277 | let core_scope = js_scope_to_core(scope); |
| 278 | let memories = self |
| 279 | .service |
| 280 | .get_all(&core_scope) |
| 281 | .await |
| 282 | .map_err(to_napi_error)?; |
| 283 | Ok(memories.into_iter().map(core_memory_to_js).collect()) |
| 284 | } |
| 285 | |
| 286 | /// Update a memory's content. |
| 287 | #[napi] |
nothing calls this directly
no test coverage detected