Skip to content

Commit 1708b35

Browse files
committed
1570 Improve Additional Rules prompt
1 parent cfae042 commit 1708b35

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

server/ee/libs/ai/ai-copilot/ai-copilot-service/src/main/java/com/bytechef/ee/ai/copilot/agent/WorkflowEditorSpringAIAgent.java

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,15 @@
3333
*/
3434
public class WorkflowEditorSpringAIAgent extends SpringAIAgent {
3535

36-
private static final String ADDITIONAL_RULES = """
37-
## Additional Rules:
38-
39-
- Don't send Visual Representations. as part of the response
40-
- If you are in CHAT mode don't try to modify the workflow definition
41-
""";
36+
private static final String ADDITIONAL_RULES =
37+
"""
38+
## Additional Rules
39+
40+
- The assistant must not produce visual representations of any kind, including diagrams, charts, UI sketches, images, or pseudo-visuals.
41+
- When operating in CHAT mode, the assistant must not modify, propose modifications to, or generate new versions of the workflow definition. The assistant may only describe, clarify, or explain.
42+
- If a current selected node is available, the assistant must prioritize all answers using that node as the primary context.
43+
- If no node is selected, the assistant must use the broader workflow context as the primary basis for responses.
44+
""";
4245

4346
private final WorkflowService workflowService;
4447

0 commit comments

Comments
 (0)