Class RouteEvaluationResult
java.lang.Object
dev.langchain4j.image_to_diagram.actions.correction.RouteEvaluationResult
- All Implemented Interfaces:
EdgeAction<ImageToDiagram.State>
Represents the result of evaluating a route.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ImageToDiagram.State state) Determines the evaluation result based on the current state of the image-to-diagram conversion process.
-
Constructor Details
-
RouteEvaluationResult
public RouteEvaluationResult()
-
-
Method Details
-
apply
Determines the evaluation result based on the current state of the image-to-diagram conversion process.- Specified by:
apply
in interfaceEdgeAction<ImageToDiagram.State>
- Parameters:
state
- The current state of the image-to-diagram conversion, which must contain an evaluation result.- Returns:
- A string representing the name of the evaluation result.
- Throws:
IllegalArgumentException
- if no evaluation result is provided in the state.
-