in aidial_adapter_bedrock/llm/tools/tools_config.py [0:0]
def create_fresh_tool_call_id(self, tool_name: str) -> str:
if self.tool_ids is None:
raise ValidationError("Function are used, but requested tool id")
idx = 1
while True:
id = f"{tool_name}_{idx}"
if id not in self.tool_ids:
self.tool_ids[id] = tool_name
return id
idx += 1