Skip to content

Commit 3c9a483

Browse files
committed
refactor(agent): action improved for more stability
The action prompt was sometimes wrongly used. This new format makes it more stable Signed-off-by: Valentin De Matos <[email protected]>
1 parent 2caeab7 commit 3c9a483

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

agentarium/Agent.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ class Agent:
8989
</THINK>
9090
9191
<ACTION>
92-
[YOUR_NEXT_ACTION: One of the following actions: {list_of_actions}]
92+
[One of the following actions: {list_of_actions}]
9393
</ACTION>
9494
"""
9595

@@ -332,7 +332,7 @@ def _talk_action_function(self, *params) -> None:
332332
raise RuntimeError(f"Received a TALK action with less than 2 arguments: {params}")
333333

334334
if (receiver := self._interaction_manager.get_agent(params[0])) is None:
335-
raise RuntimeError(f"Received a TALK action with an invalid agent ID: {params[0]}")
335+
raise RuntimeError(f"Received a TALK action with an invalid agent ID: {params[0]}. {params=}")
336336

337337
return self.talk_to(receiver, params[1])
338338

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.0"
6+
__version__ = "0.2.1"
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.0"
7+
version = "0.2.1"
88
authors = [
99
{ name = "thytu" },
1010
]

0 commit comments

Comments
 (0)