MCPcopy Create free account
hub / github.com/AQ-MedAI/MedMemoryBench / clean_keys

Method clean_keys

methods/letta/server/server.py:912–917  ·  view source on GitHub ↗
(config)

Source from the content-addressed store, hash-verified

910 """Return the base config"""
911
912 def clean_keys(config):
913 config_copy = config.copy()
914 for k, v in config.items():
915 if k == "key" or "_key" in k:
916 config_copy[k] = server_utils.shorten_key_middle(v, chars_each_side=5)
917 return config_copy
918
919 # TODO: do we need a separate server config?
920 base_config = vars(self.config)

Callers

nothing calls this directly

Calls 2

copyMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected