structured memory: facts/pinned/episodes, batched consolidation, participant-scoped recall
This commit is contained in:
@@ -40,17 +40,9 @@ class TestReactionClear(TestBotBase):
|
||||
message.content = "Some message text"
|
||||
message.author.name = "alice"
|
||||
message.channel = MagicMock(spec=TextChannel)
|
||||
self.bot.airesponder.memoize = AsyncMock()
|
||||
self.bot.airesponder.observe_event = AsyncMock()
|
||||
await self.bot.on_reaction_clear(message, [Mock()])
|
||||
self.bot.airesponder.memoize.assert_awaited_once()
|
||||
|
||||
|
||||
class TestUpdateMemory(unittest.TestCase):
|
||||
def test_update_memory_uses_argument(self):
|
||||
"""ENV-14: update_memory persists the passed value, not stale state (D12)."""
|
||||
responder = AIResponder({"system": "s", "history-limit": 5}, "chat")
|
||||
responder.update_memory("NEW MEMORY")
|
||||
self.assertEqual(responder.memory, "NEW MEMORY")
|
||||
self.bot.airesponder.observe_event.assert_awaited_once()
|
||||
|
||||
|
||||
class TestRetryModel(unittest.IsolatedAsyncioTestCase):
|
||||
|
||||
Reference in New Issue
Block a user