Skip to content

Latest commit

 

History

History
35 lines (19 loc) · 1.48 KB

README.md

File metadata and controls

35 lines (19 loc) · 1.48 KB

Langgraph4j - Image To Diagram

Generate PlantUML diagram from Image

The "Generate PlantUML diagram from Image" flow involves structured sequence of steps. Initially, an agent receives an image and is responsible for analyzing and describing its content. This description is then passed to a specialized agent equipped with the skills to translate the description into PlantUML code. To ensure precision in diagram generation, the type of diagram identified within the image dictates the selection of the appropriately skilled agent for the translation task. This ensures that each diagram type is handled by an agent with specific expertise relevant to that diagram.

PlantUML Diagram

diagram

Handle translation errors

In the case that there are errors in result of PlantUML code we have established a supplementary flow that provided a correction process consisting of iteration between both verification and rewrite steps as shown below

PlantUML Diagram

diagram

Merge All

Finally we can put all together having a complete flow that include also a refinement process over result.

PlantUML Diagram

diagram


Go to code