repositories
loading repo index
repositories
loading repo index
repository
loading code, commits, and activity
public Clawd ADK gateway launch mirror
stars
latest
clone command
git clone gitlawb://did:key:z6Mkq5mY...iFZ5/my-project-publ...git clone gitlawb://did:key:z6Mkq5mY.../my-project-publ...2fa351d6docs: add automaton and perps launch sources16d ago| #1 | from abc import ABC, abstractmethod |
| #2 | |
| #3 | |
| #4 | class MemoryBase(ABC): |
| #5 | @abstractmethod |
| #6 | def get(self, memory_id): |
| #7 | """ |
| #8 | Retrieve a memory by ID. |
| #9 | |
| #10 | Args: |
| #11 | memory_id (str): ID of the memory to retrieve. |
| #12 | |
| #13 | Returns: |
| #14 | dict: Retrieved memory. |
| #15 | """ |
| #16 | pass |
| #17 | |
| #18 | @abstractmethod |
| #19 | def get_all(self): |
| #20 | """ |
| #21 | List all memories. |
| #22 | |
| #23 | Returns: |
| #24 | list: List of all memories. |
| #25 | """ |
| #26 | pass |
| #27 | |
| #28 | @abstractmethod |
| #29 | def update(self, memory_id, data): |
| #30 | """ |
| #31 | Update a memory by ID. |
| #32 | |
| #33 | Args: |
| #34 | memory_id (str): ID of the memory to update. |
| #35 | data (str): New content to update the memory with. |
| #36 | |
| #37 | Returns: |
| #38 | dict: Success message indicating the memory was updated. |
| #39 | """ |
| #40 | pass |
| #41 | |
| #42 | @abstractmethod |
| #43 | def delete(self, memory_id): |
| #44 | """ |
| #45 | Delete a memory by ID. |
| #46 | |
| #47 | Args: |
| #48 | memory_id (str): ID of the memory to delete. |
| #49 | """ |
| #50 | pass |
| #51 | |
| #52 | @abstractmethod |
| #53 | def history(self, memory_id): |
| #54 | """ |
| #55 | Get the history of changes for a memory by ID. |
| #56 | |
| #57 | Args: |
| #58 | memory_id (str): ID of the memory to get history for. |
| #59 | |
| #60 | Returns: |
| #61 | list: List of changes for the memory. |
| #62 | """ |
| #63 | pass |
| #64 |