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

Method __init__

autoagent/memory/tool_memory.py:13–28  ·  view source on GitHub ↗
(
        self,
        project_path: str,
        db_name: str = '.tool_table',
        platform: str = 'OpenAI',
        api_key: str = None,
        embedding_model: str = "text-embedding-3-small",
    )

Source from the content-addressed store, hash-verified

11"""
12class ToolMemory(Memory):
13 def __init__(
14 self,
15 project_path: str,
16 db_name: str = '.tool_table',
17 platform: str = 'OpenAI',
18 api_key: str = None,
19 embedding_model: str = "text-embedding-3-small",
20 ):
21 super().__init__(
22 project_path=project_path,
23 db_name=db_name,
24 platform=platform,
25 api_key=api_key,
26 embedding_model=embedding_model
27 )
28 self.collection_name = 'tool_memory'
29
30 def add_dataframe(self, df: pd.DataFrame, collection: str = None, batch_size: int = 100):
31 if not collection:

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected