Skip to content

Commit

Permalink
Fix shared state initialization when testing tools separately #165
Browse files Browse the repository at this point in the history
  • Loading branch information
VRSEN committed Aug 15, 2024
1 parent 7f2e891 commit 89a60a2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion agency_swarm/tools/BaseTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,12 @@ class BaseTool(OpenAISchema, ABC):
caller_agent: Any = None
event_handler: Any = None
one_call_at_a_time: bool = False


def __init__(self, **kwargs):
super().__init__(**kwargs)
if not self.shared_state:
self.shared_state = SharedState()

class ToolConfig:
strict: bool = False

Expand Down

0 comments on commit 89a60a2

Please sign in to comment.