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