diff --git a/agency_swarm/tools/BaseTool.py b/agency_swarm/tools/BaseTool.py index c0495642..c2927091 100644 --- a/agency_swarm/tools/BaseTool.py +++ b/agency_swarm/tools/BaseTool.py @@ -15,8 +15,8 @@ class BaseTool(OpenAISchema, ABC): def __init__(self, **kwargs): super().__init__(**kwargs) - if not self.shared_state: - self.shared_state = SharedState() + if not self.__class__.shared_state: + self.__class__.shared_state = SharedState() class ToolConfig: strict: bool = False