You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: prompts_dot_graph_creator.py
+8-2
Original file line number
Diff line number
Diff line change
@@ -45,12 +45,18 @@
45
45
- use clear natural language, in a concise, friendly tone.
46
46
"""
47
47
48
+
defgetExpertCommandToCreateDot():
49
+
returnCommand('create_dot_workflow', create_dot_flowchart__expert_template, "Good for answering questions about creating a workflow in DOT notation")
50
+
51
+
defgetExpertCommandToDescribeDot():
52
+
returnCommand('describe_dot_workflow', describe_dot_flowchart__expert_template, "Good for describing a workflow given in DOT notation, summarizing its activity and its general purpose")
53
+
48
54
# Each expert is a prompt that knows how to handle one type of user input
49
55
EXPERT_COMMANDS= [
50
-
Command('describe_dot_workflow', describe_dot_flowchart__expert_template, "Good for describing a workflow given in DOT notation, summarizing its activity and its general purpose"),
56
+
getExpertCommandToDescribeDot(),
51
57
# Placing this last, so that its IMPORTANT message about whitelist is not ignored (LLMs tend to ignore content in middle)
52
58
# An approach like LangChain's MULTI_PROMPT_ROUTER_TEMPLATE would avoid this problem.
53
-
Command('create_dot_workflow', create_dot_flowchart__expert_template, "Good for answering questions about creating a workflow in DOT notation"),
0 commit comments