(self)
| 87 | raise TypeError("Wrong type for `config`, must be subclass of BaseConfig") |
| 88 | |
| 89 | def create_root(self) -> Type[BaseNode]: |
| 90 | root = self.create_node() |
| 91 | root.state["extra_info"] = f"question: {self.question}" |
| 92 | return root |
| 93 | |
| 94 | @abstractmethod |
| 95 | def create_node(self, parent: Optinal[Type[BaseNode]] = None) -> Type[BaseNode]: |