forked from i-am-bee/beeai-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.py
More file actions
25 lines (17 loc) · 853 Bytes
/
custom.py
File metadata and controls
25 lines (17 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
from typing import Any
from beeai_framework.backend import AnyMessage
from beeai_framework.memory import BaseMemory
class MyMemory(BaseMemory):
@property
def messages(self) -> list[AnyMessage]:
raise NotImplementedError("Method not yet implemented.")
async def add(self, message: AnyMessage, index: int | None = None) -> None:
raise NotImplementedError("Method not yet implemented.")
async def delete(self, message: AnyMessage) -> bool:
raise NotImplementedError("Method not yet implemented.")
def reset(self) -> None:
raise NotImplementedError("Method not yet implemented.")
def create_snapshot(self) -> Any:
raise NotImplementedError("Method not yet implemented.")
def load_snapshot(self, state: Any) -> None:
raise NotImplementedError("Method not yet implemented.")