-
Notifications
You must be signed in to change notification settings - Fork 139
/
custom.ts
29 lines (23 loc) · 923 Bytes
/
custom.ts
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
26
27
28
29
import { BaseMemory } from "bee-agent-framework/memory/base";
import { BaseMessage } from "bee-agent-framework/llms/primitives/message";
import { NotImplementedError } from "bee-agent-framework/errors";
export class MyMemory extends BaseMemory {
get messages(): readonly BaseMessage[] {
throw new NotImplementedError("Method not implemented.");
}
add(message: BaseMessage, index?: number): Promise<void> {
throw new NotImplementedError("Method not implemented.");
}
delete(message: BaseMessage): Promise<boolean> {
throw new NotImplementedError("Method not implemented.");
}
reset(): void {
throw new NotImplementedError("Method not implemented.");
}
createSnapshot(): unknown {
throw new NotImplementedError("Method not implemented.");
}
loadSnapshot(state: ReturnType<typeof this.createSnapshot>): void {
throw new NotImplementedError("Method not implemented.");
}
}