(
self,
project_path: str,
db_name: str = '.tool_table',
platform: str = 'OpenAI',
api_key: str = None,
embedding_model: str = "text-embedding-3-small",
)
| 11 | """ |
| 12 | class 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: |
nothing calls this directly
no outgoing calls
no test coverage detected