def __functions(self, obj) -> List[Dict[str, Any]]: """ Extracts JSON schemas from the methods in the class. :return: A list of JSON schemas. """ schemas = [] for name, method in inspect.getmembers(obj, predicate=inspect.ismethod): if hasattr(method, 'schema'): schemas.append(method.schema) return schemas