Spaces:
Sleeping
Sleeping
Update agentic.py
Browse files- agentic.py +1 -1
agentic.py
CHANGED
|
@@ -855,7 +855,7 @@ You must always respect this format in lower case: next node <the node name you
|
|
| 855 |
|
| 856 |
entry_node_response[-1].pretty_print()
|
| 857 |
|
| 858 |
-
regex_result = re.search(r'.*next.*
|
| 859 |
|
| 860 |
next_node = "END"
|
| 861 |
if regex_result:
|
|
|
|
| 855 |
|
| 856 |
entry_node_response[-1].pretty_print()
|
| 857 |
|
| 858 |
+
regex_result = re.search(r'.*next.*(?P<next_node>thinking_node|web_search_node|vision_node|video_node|audio_node|code_node|excel_node)', entry_node_response[-1].content, re.IGNORECASE)
|
| 859 |
|
| 860 |
next_node = "END"
|
| 861 |
if regex_result:
|