Skip to content

Commit af60995

Browse files
committed
refactor: update comment
1 parent d595dc6 commit af60995

File tree

1 file changed

+3
-35
lines changed

1 file changed

+3
-35
lines changed

core-jdk8/src/main/java/org/bsc/langgraph4j/diagram/MermaidGenerator.java

+3-35
Original file line numberDiff line numberDiff line change
@@ -5,41 +5,9 @@
55
import static java.lang.String.format;
66

77
/**
8-
* ---
9-
* title: Graph Diagram
10-
* ---
11-
* flowchart TD
12-
*
13-
* start((start))
14-
* stop((stop))
15-
*
16-
* web_search("web_search")
17-
* retrieve("retrieve")
18-
* grade_documents("grade_documents")
19-
* generate("generate")
20-
* transform_query("transform_query")
21-
*
22-
* condition1{"check state"}
23-
* condition2{"check state"}
24-
* startcondition{"check state"}
25-
*
26-
* start --> startcondition
27-
* startcondition -->|web search| web_search
28-
* startcondition --> |vectorstore|retrieve
29-
*
30-
* web_search --> generate
31-
* retrieve --> grade_documents
32-
*
33-
* grade_documents --> condition1
34-
* condition1 --> transform_query
35-
* condition1 --> generate
36-
*
37-
* transform_query --> retrieve
38-
* generate --> condition2
39-
*
40-
* condition2 --> generate
41-
* condition2 --> transform_query
42-
* condition2 --> stop
8+
* This class represents a MermaidGenerator that extends DiagramGenerator. It generates a flowchart using Mermaid syntax.
9+
* The flowchart includes various nodes such as start, stop, web_search, retrieve, grade_documents, generate, transform_query,
10+
* and different conditional states.
4311
*/
4412
public class MermaidGenerator extends DiagramGenerator {
4513

0 commit comments

Comments
 (0)