Update MemoryWritingAtomicFlow.py
Browse files
MemoryWritingAtomicFlow.py
CHANGED
|
@@ -1,6 +1,15 @@
|
|
| 1 |
from typing import Dict, Any
|
| 2 |
from aiflows.base_flows.atomic import AtomicFlow
|
| 3 |
class MemoryWritingAtomicFlow(AtomicFlow):
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 4 |
def __init__(self, **kwargs):
|
| 5 |
super().__init__(**kwargs)
|
| 6 |
self.supported_memories = ["summary"]
|
|
|
|
| 1 |
from typing import Dict, Any
|
| 2 |
from aiflows.base_flows.atomic import AtomicFlow
|
| 3 |
class MemoryWritingAtomicFlow(AtomicFlow):
|
| 4 |
+
"""This class is used to write memory to memory files.
|
| 5 |
+
|
| 6 |
+
*Input Interface*:
|
| 7 |
+
- `summary` (str): summary to write to memory file (logs)
|
| 8 |
+
- `memory_files` (dict): dictionary of memory files to write to.
|
| 9 |
+
|
| 10 |
+
*Output Interface*:
|
| 11 |
+
- `MemWrite_output` (str): message that whether memory write was successful
|
| 12 |
+
"""
|
| 13 |
def __init__(self, **kwargs):
|
| 14 |
super().__init__(**kwargs)
|
| 15 |
self.supported_memories = ["summary"]
|