Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.
fix: correct usage of str to string()
cpacker90ef6f4b06c2
diff --git a/memgpt/agent.py b/memgpt/agent.pyindex 0003591f5..213c8b434 100644--- a/memgpt/agent.py+++ b/memgpt/agent.py@@ -1,6 +1,5 @@import datetimeimport inspect-import jsonimport tracebackfrom typing import List, Literal, Optional, Tuple, Union@@ -108,7 +107,7 @@ def compile_system_message(archival_memory=archival_memory,recall_memory=recall_memory,)- full_memory_string = memory_metadata_string + "\n" + str(in_context_memory)+ full_memory_string = memory_metadata_string + "\n" + in_context_memory.string()# Add to the variables list to injectvariables[IN_CONTEXT_MEMORY_KEYWORD] = full_memory_string