fabricatio_improve.models.improve

A module containing kwargs types for content correction and checking operations.

Classes

Improvement

A class representing an improvement suggestion.

Module Contents

class fabricatio_improve.models.improve.Improvement(/, **data: Any)

Bases: fabricatio_core.models.generic.SketchedAble

A class representing an improvement suggestion.

focused_on: str

The focused on topic of the improvement

problem_solutions: List[fabricatio_improve.models.problem.ProblemSolutions]

Collection of problems identified during review along with their potential solutions.

all_problems_have_solutions() bool

Check if all problems have solutions.

async supervisor_check(check_solutions: bool = True) Self

Perform an interactive review session to filter problems and solutions.

Presents an interactive prompt allowing a supervisor to select which problems (and optionally solutions) should be retained in the final review.

Parameters:

check_solutions (bool, optional) – When True, also prompts for filtering individual solutions for each retained problem. Defaults to False.

Returns:

The current instance with filtered problems and solutions.

Return type:

Self

decided() bool

Check if the improvement is decided.

classmethod gather(*improvements: Unpack[Tuple[Improvement, Ellipsis]]) Self

Gather multiple improvements into a single instance.