Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

fix: patch type error (#1506)

Charles Packer2ae5e9421fc3
diff --git a/memgpt/agent.py b/memgpt/agent.py
index 1430f4fb0..658a5e331 100644
--- a/memgpt/agent.py
+++ b/memgpt/agent.py
@@ -549,7 +549,7 @@ class Agent(object):
return_dicts: bool = True, # if True, return dicts, if False, return Message objects
recreate_message_timestamp: bool = True, # if True, when input is a Message type, recreated the 'created_at' field
stream: bool = False, # TODO move to config?
- timestamp: Optional[datetime] = None,
+ timestamp: Optional[datetime.datetime] = None,
) -> Tuple[List[Union[dict, Message]], bool, bool, bool]:
"""Top-level event message handler for the MemGPT agent"""