Skip to content

Commit cb32d00

Browse files
fix(agent): unsafe agent private interactions call (#3)
fix(agent): unsafe agent private interactions call git: exclude *.code-workspace
1 parent 6e0d5e2 commit cb32d00

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,6 @@ cython_debug/
173173
# Pickle files
174174
*.pickle
175175
*.pkl
176+
177+
# VS Code
178+
*.code-workspace

agentarium/Agent.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ def dump(self) -> dict:
355355
return {
356356
"agent_id": self.agent_id,
357357
"agent_informations": self.agent_informations,
358-
"interactions": [interaction.dump() for interaction in self._interaction_manager._agent_private_interactions[self.agent_id]],
358+
"interactions": [interaction.dump() for interaction in self._interaction_manager.get_agent_interactions(self)],
359359
}
360360

361361
def __str__(self) -> str:

0 commit comments

Comments
 (0)