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

Method __init__

autoagent/memory/code_memory.py:8–10  ·  view source on GitHub ↗
(self, project_path: str, db_name: str = '.sa', platform: str = 'OpenAI', api_key: str = None, embedding_model: str = "text-embedding-ada-002")

Source from the content-addressed store, hash-verified

6
7class CodeMemory(Memory):
8 def __init__(self, project_path: str, db_name: str = '.sa', platform: str = 'OpenAI', api_key: str = None, embedding_model: str = "text-embedding-ada-002"):
9 super().__init__(project_path, db_name, platform, api_key, embedding_model)
10 self.collection_name = 'code_memory'
11
12 def add_code_files(self, directory: str, exclude_prefix: List[str] = ["workplace_"]):
13 """

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected