Skip to content

Commit

Permalink
Fix shared state initialization #165
Browse files Browse the repository at this point in the history
  • Loading branch information
VRSEN committed Aug 15, 2024
1 parent 89a60a2 commit b2f7375
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions agency_swarm/tools/BaseTool.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2f7375

Please sign in to comment.