Skip to content

Commit

Permalink
remove prints
Browse files Browse the repository at this point in the history
  • Loading branch information
cpacker committed Mar 27, 2024
1 parent e0dfd5b commit 673c8a9
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions memgpt/server/rest_api/agents/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,12 +99,12 @@ def get_agent_messages_cursor(
[_, messages] = server.get_agent_recall_cursor(
user_id=user_id, agent_id=agent_id, before=request.before, limit=request.limit, reverse=True
)
print("====> messages-cursor DEBUG")
for i, msg in enumerate(messages):
print(f"message {i+1}/{len(messages)}")
# print(f"UTC created-at: {msg.created_at.strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3] + 'Z'}")
print(f"ISO format string: {msg['created_at']}")
print(msg)
# print("====> messages-cursor DEBUG")
# for i, msg in enumerate(messages):
# print(f"message {i+1}/{len(messages)}")
# print(f"UTC created-at: {msg.created_at.strftime('%Y-%m-%dT%H:%M:%S.%f')[:-3] + 'Z'}")
# print(f"ISO format string: {msg['created_at']}")
# print(msg)
return GetAgentMessagesResponse(messages=messages)

@router.post("/agents/{agent_id}/messages", tags=["agents"], response_model=UserMessageResponse)
Expand Down

0 comments on commit 673c8a9

Please sign in to comment.