MCPcopy
hub / github.com/FoundationAgents/MetaGPT / exists

Method exists

metagpt/memory/brain_memory.py:107–111  ·  view source on GitHub ↗
(self, text)

Source from the content-addressed store, hash-verified

105 self.is_dirty = True
106
107 def exists(self, text) -> bool:
108 for m in reversed(self.history):
109 if m.content == text:
110 return True
111 return False
112
113 @staticmethod
114 def to_int(v, default_value):

Callers 15

test_memoryFunction · 0.95
from_homeMethod · 0.45
deserializeMethod · 0.45
get_metagpt_package_rootFunction · 0.45
generate_repoFunction · 0.45
copy_config_toFunction · 0.45
from_pathMethod · 0.45
from_pathMethod · 0.45
rebuild_class_viewsMethod · 0.45
_parse_classesMethod · 0.45
_create_path_mappingMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_memoryFunction · 0.76
rsp_cacheFunction · 0.36
_rsp_cacheFunction · 0.36
test_config_priorityFunction · 0.36
test_repo_parserFunction · 0.36
test_azure_ttsFunction · 0.36
test_api_to_ut_sampleMethod · 0.36
test_file_repoFunction · 0.36
test_get_project_rootMethod · 0.36