MCPcopy Index your code
hub / github.com/InfinitiBit/graphbit / get

Method get

javascript/src/lib.rs:267–272  ·  view source on GitHub ↗
(&self, memory_id: String)

Source from the content-addressed store, hash-verified

265 /// Get a single memory by ID.
266 #[napi]
267 pub async fn get(&self, memory_id: String) -> Result<Option<JsMemory>> {
268 let id = graphbit_core::memory::MemoryId::from_string(&memory_id)
269 .map_err(|e| to_napi_error(format!("Invalid memory ID: {e}")))?;
270 let mem = self.service.get(&id).await.map_err(to_napi_error)?;
271 Ok(mem.map(core_memory_to_js))
272 }
273
274 /// Get all memories matching a scope.
275 #[napi]

Callers 15

from_urlMethod · 0.45
parse_encode_resultFunction · 0.45
parse_decode_resultFunction · 0.45
_validate_securityMethod · 0.45
mainFunction · 0.45
_update_json_versionMethod · 0.45
_load_migration_stateMethod · 0.45
mainFunction · 0.45

Calls 1

to_napi_errorFunction · 0.85

Tested by 15

mainFunction · 0.36
get_weatherFunction · 0.36
get_capitalFunction · 0.36
get_populationFunction · 0.36
runMethod · 0.36
is_ollama_availableFunction · 0.36
test_error_conversionsFunction · 0.36
check_ollama_urlFunction · 0.36
test_workflow_contextFunction · 0.36