Skip to content

Commit 4e4a19a

Browse files
committed
fix(interaction): no longer store twice self-interactions (i.e thinking)
Signed-off-by: Valentin De Matos <[email protected]>
1 parent f05d3f3 commit 4e4a19a

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

agentarium/AgentInteractionManager.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,9 @@ def record_interaction(self, sender: Agent, receiver: Agent, message: str) -> No
9797

9898
# Record in private interactions for both sender and receiver
9999
self._agent_private_interactions[sender.agent_id].append(interaction)
100-
self._agent_private_interactions[receiver.agent_id].append(interaction)
100+
101+
if receiver.agent_id != sender.agent_id:
102+
self._agent_private_interactions[receiver.agent_id].append(interaction)
101103

102104
def get_all_interactions(self) -> List[Interaction]:
103105
"""

agentarium/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
from .AgentInteractionManager import AgentInteractionManager
44
from .Interaction import Interaction
55

6-
__version__ = "0.2.4"
6+
__version__ = "0.2.5"
77

88
__all__ = [
99
"Agent",

pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "agentarium"
7-
version = "0.2.4"
7+
version = "0.2.5"
88
authors = [
99
{ name = "thytu" },
1010
]

0 commit comments

Comments
 (0)