Bug fix, show memory retrieval steps in EventLogger

This commit is contained in:
Ashwin Bharambe 2024-08-25 15:03:49 -07:00
parent ceef117abc
commit 0760849a1f
2 changed files with 17 additions and 1 deletions

View file

@ -631,6 +631,8 @@ class ChatAgent(ShieldRunnerMixin):
for a in attachments
]
await self.memory_api.insert_documents(bank.bank_id, documents)
elif session.memory_bank:
bank_ids.append(session.memory_bank.bank_id)
if not bank_ids:
# this can happen if the per-session memory bank is not yet populated