Commit bb536f0
committed
Add graph visualization queries to approval workflow samples
Add get_graph_ascii() and get_graph_mermaid() queries to both
human_in_the_loop workflow samples, demonstrating how to expose
graph execution progress via Temporal queries.
These queries return:
- ASCII art diagram with progress indicators (✓/▶/○)
- Mermaid flowchart with colored nodes by status1 parent c95ddac commit bb536f0
2 files changed
Lines changed: 59 additions & 5 deletions
File tree
- langgraph_plugin/human_in_the_loop
- approval_graph_interrupt
- approval_wait_condition
Lines changed: 30 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
47 | 47 | | |
48 | 48 | | |
49 | 49 | | |
| 50 | + | |
50 | 51 | | |
51 | 52 | | |
52 | 53 | | |
| |||
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
79 | 106 | | |
80 | 107 | | |
81 | 108 | | |
| |||
92 | 119 | | |
93 | 120 | | |
94 | 121 | | |
95 | | - | |
| 122 | + | |
96 | 123 | | |
97 | 124 | | |
98 | 125 | | |
| |||
112 | 139 | | |
113 | 140 | | |
114 | 141 | | |
115 | | - | |
| 142 | + | |
116 | 143 | | |
117 | 144 | | |
118 | 145 | | |
| |||
153 | 180 | | |
154 | 181 | | |
155 | 182 | | |
156 | | - | |
| 183 | + | |
157 | 184 | | |
158 | 185 | | |
Lines changed: 29 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
42 | 43 | | |
43 | 44 | | |
44 | 45 | | |
| |||
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
71 | 98 | | |
72 | 99 | | |
73 | 100 | | |
| |||
78 | 105 | | |
79 | 106 | | |
80 | 107 | | |
81 | | - | |
| 108 | + | |
82 | 109 | | |
83 | 110 | | |
84 | 111 | | |
| |||
98 | 125 | | |
99 | 126 | | |
100 | 127 | | |
101 | | - | |
| 128 | + | |
102 | 129 | | |
103 | 130 | | |
0 commit comments