Class DescribeDiagramImage

java.lang.Object
dev.langchain4j.image_to_diagram.actions.DescribeDiagramImage
All Implemented Interfaces:
NodeAction<ImageToDiagram.State>

public class DescribeDiagramImage extends Object implements NodeAction<ImageToDiagram.State>
This class implements the `NodeAction` interface for diagram image description. It provides functionality to process the state of an image and generate a textual description based on its content using a vision model.
  • Constructor Details

    • DescribeDiagramImage

      public DescribeDiagramImage(@NonNull @NonNull dev.langchain4j.model.chat.ChatLanguageModel visionModel)
      Constructs a `DescribeDiagramImage` instance with the given language model.
      Parameters:
      visionModel - The language model used to generate descriptions.
  • Method Details