MCPcopy
hub / github.com/NevaMind-AI/memU / get

Method get

src/memu/app/settings.py:47–48  ·  view source on GitHub ↗
(self, key: str, default: PromptBlock | None = None)

Source from the content-addressed store, hash-verified

45 root: dict[str, PromptBlock] = Field(default_factory=dict)
46
47 def get(self, key: str, default: PromptBlock | None = None) -> PromptBlock | None:
48 return self.root.get(key, default)
49
50 def items(self) -> list[tuple[str, PromptBlock]]:
51 return list(self.root.items())

Callers 15

_extract_user_queryMethod · 0.45
_inject_memoriesMethod · 0.45
_retrieve_memoriesMethod · 0.45
createMethod · 0.45
acreateMethod · 0.45
fetchMethod · 0.45
_extract_messagesFunction · 0.45
_format_messagesFunction · 0.45
_extract_text_contentFunction · 0.45
_extract_created_atFunction · 0.45
get_tool_callsFunction · 0.45

Calls

no outgoing calls

Tested by 15

test_add_tool_callMethod · 0.36
test_metadata_fieldMethod · 0.36
test_default_valuesMethod · 0.36
_print_resultsFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
mainFunction · 0.36
_print_categoriesFunction · 0.36
_print_itemsFunction · 0.36
_test_memorizeFunction · 0.36
_test_retrieveFunction · 0.36