Skip to content

Building AI agents, atomically

fix: correct delete_turn_id parameter type from int to str

JiangNan696a8b2beccc
diff --git a/atomic-agents/atomic_agents/context/chat_history.py b/atomic-agents/atomic_agents/context/chat_history.py
index 44f1496..8a37029 100644
--- a/atomic-agents/atomic_agents/context/chat_history.py
+++ b/atomic-agents/atomic_agents/context/chat_history.py
@@ -204,12 +204,12 @@ class ChatHistory:
"""
return self.current_turn_id
- def delete_turn_id(self, turn_id: int):
+ def delete_turn_id(self, turn_id: str):
"""
Delete messages from the history by its turn ID.
Args:
- turn_id (int): The turn ID of the message to delete.
+ turn_id (str): The turn ID of the message to delete.
Returns:
str: A success message with the deleted turn ID.