in aidial_adapter_bedrock/llm/tools/tools_config.py [0:0]
def _get_function_from_tool(tool: Tool | StaticTool) -> Function:
if isinstance(tool, Tool):
return tool.function
elif isinstance(tool, StaticTool):
raise ValidationError("Static tools aren't supported")
else:
assert_never(tool)