Class RouteEvaluationResult

java.lang.Object
dev.langchain4j.image_to_diagram.actions.correction.RouteEvaluationResult
All Implemented Interfaces:
EdgeAction<ImageToDiagram.State>

public class RouteEvaluationResult extends Object implements EdgeAction<ImageToDiagram.State>
Represents the result of evaluating a route.
  • Constructor Details

    • RouteEvaluationResult

      public RouteEvaluationResult()
  • Method Details

    • apply

      public String apply(ImageToDiagram.State state)
      Determines the evaluation result based on the current state of the image-to-diagram conversion process.
      Specified by:
      apply in interface EdgeAction<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.