mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-08 15:05:17 +02:00
check empty content
This commit is contained in:
parent
c95a925b19
commit
444dd1a47b
1 changed files with 1 additions and 1 deletions
|
|
@ -129,7 +129,7 @@ class RoleZeroLongTermMemory(Memory):
|
|||
If adding long-term memory fails, it will only log the error without interrupting program execution.
|
||||
"""
|
||||
|
||||
if not item:
|
||||
if not item or not item.message.content:
|
||||
return
|
||||
|
||||
self.rag_engine.add_objs([item])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue