Skip to content

Commit 1bc3898

Browse files
committed
remove unused _initialize_shared_states
1 parent 075a0b4 commit 1bc3898

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

src/strands_evals/simulation/tool_simulator.py

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -182,17 +182,6 @@ def __init__(
182182
self.model = model
183183
self.state_registry = state_registry or StateRegistry(max_tool_call_cache_size=max_tool_call_cache_size)
184184
self._registered_tools: dict[str, RegisteredTool] = {}
185-
self._initialize_shared_states()
186-
187-
def _initialize_shared_states(self):
188-
"""Initialize shared states from registered tools' initial descriptions."""
189-
for tool_name, registered_tool in self._registered_tools.items():
190-
if registered_tool.initial_state_description:
191-
state_key = registered_tool.share_state_id or registered_tool.name
192-
self.state_registry.initialize_state_via_description(
193-
registered_tool.initial_state_description, state_key
194-
)
195-
logger.info(f"Initialized state for tool '{tool_name}' with key '{state_key}'")
196185

197186
def _create_tool_wrapper(self, registered_tool: RegisteredTool):
198187
"""

0 commit comments

Comments
 (0)