in aidial_assistant/tools_chain/tools_chain.py [0:0]
def _create_command(self, name: str) -> Command:
if name not in self.commands:
raise AssistantProtocolException(
f"The tool '{name}' is expected to be one of {list(self.commands.keys())}"
)
command, _ = self.commands[name]
return command()