MCPcopy Create free account
hub / github.com/HKUDS/AutoAgent / count

Method count

autoagent/memory/rag_memory.py:157–165  ·  view source on GitHub ↗

count: count the number of records in the memery. Args: collection_name: the name of the collection to count.

(self, collection_name=None)

Source from the content-addressed store, hash-verified

155 return self.client.delete_collection(name=collection_name)
156
157 def count(self, collection_name=None):
158 """
159 count: count the number of records in the memery.
160 Args:
161 collection_name: the name of the collection to count.
162 """
163 if not collection_name:
164 collection_name = self.collection_name
165 return self.client.get_or_create_collection(name=collection_name).count()
166
167 def reset(self):
168 """

Callers 9

_fix_stopwordFunction · 0.80
query_dbFunction · 0.80
code_ragFunction · 0.80
get_api_plugin_tools_docFunction · 0.80
_visit_pageFunction · 0.80
_click_idFunction · 0.80
tryToClickChallengeFunction · 0.80
_checkMeetChallengeFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected