Skip to content

Commit b6f610d

Browse files
marko-kriskovicigorbeslic
authored andcommitted
1570 - renamed chat to ask
1 parent b465f29 commit b6f610d

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

client/src/pages/platform/workflow-editor/hooks/useWorkflowLayout.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export const useWorkflowLayout = (includeComponents?: string[]) => {
162162
};
163163

164164
const handleCopilotClick = () => {
165-
setContext({mode: MODE.CHAT, parameters: {}, source: Source.WORKFLOW_EDITOR});
165+
setContext({mode: MODE.ASK, parameters: {}, source: Source.WORKFLOW_EDITOR});
166166

167167
if (!copilotPanelOpen) {
168168
setCopilotPanelOpen(!copilotPanelOpen);

client/src/shared/components/copilot/CopilotButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const CopilotButton = ({parameters = {}, source}: CopilotButtonProps) => {
2525
const ff_1570 = useFeatureFlagsStore()('ff-1570');
2626

2727
const handleClick = () => {
28-
setContext({mode: MODE.CHAT, parameters, source});
28+
setContext({mode: MODE.ASK, parameters, source});
2929

3030
if (!copilotPanelOpen) {
3131
setCopilotPanelOpen(!copilotPanelOpen);

client/src/shared/components/copilot/CopilotPanel.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ const CopilotPanel = () => {
6565
</SelectTrigger>
6666

6767
<SelectContent className="min-w-24">
68-
<SelectItem value={MODE.CHAT}>
68+
<SelectItem value={MODE.ASK}>
6969
<span className="text-muted-foreground">
70-
{MODE.CHAT.charAt(0) + MODE.CHAT.slice(1).toLowerCase()}
70+
{MODE.ASK.charAt(0) + MODE.ASK.slice(1).toLowerCase()}
7171
</span>
7272
</SelectItem>
7373

client/src/shared/components/copilot/stores/useCopilotStore.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import {create} from 'zustand';
66
import {devtools} from 'zustand/middleware';
77

88
export enum MODE {
9-
CHAT = 'CHAT',
9+
ASK = 'ASK',
1010
BUILD = 'BUILD',
1111
}
1212

@@ -54,7 +54,7 @@ export const useCopilotStore = create<CopilotStateI>()(
5454
},
5555

5656
context: {
57-
mode: MODE.CHAT,
57+
mode: MODE.ASK,
5858
},
5959
setContext: (context) =>
6060
set((state) => {

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ public class WorkflowEditorSpringAIAgent extends SpringAIAgent {
5656
## Additional Rules
5757
5858
- The assistant must not produce visual representations of any kind, including diagrams, charts, UI sketches, images, or pseudo-visuals.
59-
- 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.
59+
- When operating in ASK 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.
6060
- If a current selected node is available, the assistant must prioritize all answers using that node as the primary context.
6161
- If no node is selected, the assistant must use the broader workflow context as the primary basis for responses.
6262
""";
@@ -127,7 +127,7 @@ protected void run(RunAgentInput input, AgentSubscriber subscriber) {
127127

128128
List<Object> selectedTools = new ArrayList<>(tools);
129129

130-
if (mode.equals("CHAT")) {
130+
if (mode.equals("ASK")) {
131131
selectedTools.set(0, readProjectTools);
132132
selectedTools.set(1, readProjectWorkflowTools);
133133
} else if (mode.equals("BUILD")) {

0 commit comments

Comments
 (0)