[docs]classToTChecker(Chain,ABC):""" Tree of Thought (ToT) checker. This is an abstract ToT checker that must be implemented by the user. You can implement a simple rule-based checker or a more sophisticated neural network based classifier. """output_key:str="validity"#: :meta private:@propertydefinput_keys(self)->List[str]:"""The checker input keys. :meta private: """return["problem_description","thoughts"]@propertydefoutput_keys(self)->List[str]:"""The checker output keys. :meta private: """return[self.output_key]
[docs]@abstractmethoddefevaluate(self,problem_description:str,thoughts:Tuple[str,...]=(),)->ThoughtValidity:""" Evaluate the response to the problem description and return the solution type. """