Class EvaluateResult
java.lang.Object
dev.langchain4j.image_to_diagram.actions.correction.EvaluateResult
- All Implemented Interfaces:
Function<ImageToDiagram.State,
,CompletableFuture<Map<String, Object>>> AsyncNodeAction<ImageToDiagram.State>
Class declaration for EvaluateResult, which implements the AsyncNodeAction interface for ImageToDiagram.State.
This class is responsible for evaluating a diagram code and returning an evaluation result wrapped in a CompletableFuture.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionapply
(ImageToDiagram.State state) Applies the async action to the given state, evaluating the diagram code.
-
Constructor Details
-
EvaluateResult
public EvaluateResult()Default constructor for EvaluateResult.
-
-
Method Details
-
apply
Applies the async action to the given state, evaluating the diagram code.- Specified by:
apply
in interfaceAsyncNodeAction<ImageToDiagram.State>
- Specified by:
apply
in interfaceFunction<ImageToDiagram.State,
CompletableFuture<Map<String, Object>>> - Parameters:
state
- The current state of ImageToDiagram, containing the diagram code to be evaluated.- Returns:
- A CompletableFuture that resolves with a map containing the evaluation result.
-