Skip to content

Commit 549351a

Browse files
authored
ai-worker v1.1.1
2 parents 3d6c4aa + 9f83fca commit 549351a

4 files changed

Lines changed: 20 additions & 9 deletions

File tree

.github/workflows/cd-on-premise.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ jobs:
7676
uses: docker/setup-buildx-action@v3
7777

7878
- name: Build and push NestJS API image
79+
if: contains(inputs.deploy_targets, 'all') || contains(inputs.deploy_targets, 'nest')
7980
uses: docker/build-push-action@v5
8081
with:
8182
context: .
@@ -89,6 +90,7 @@ jobs:
8990
cache-to: type=gha,mode=max
9091

9192
- name: Build and push Spring Boot API image
93+
if: contains(inputs.deploy_targets, 'all') || contains(inputs.deploy_targets, 'spring')
9294
uses: docker/build-push-action@v5
9395
with:
9496
context: .
@@ -102,6 +104,7 @@ jobs:
102104
cache-to: type=gha,mode=max
103105

104106
- name: Build and push Web image
107+
if: contains(inputs.deploy_targets, 'all') || contains(inputs.deploy_targets, 'web')
105108
uses: docker/build-push-action@v5
106109
with:
107110
context: .
@@ -118,6 +121,7 @@ jobs:
118121
cache-to: type=gha,mode=max
119122

120123
- name: Build and push Log Consumer image
124+
if: contains(inputs.deploy_targets, 'all') || contains(inputs.deploy_targets, 'log')
121125
uses: docker/build-push-action@v5
122126
with:
123127
context: .
@@ -131,6 +135,7 @@ jobs:
131135
cache-to: type=gha,mode=max
132136

133137
- name: Build and push AI API image
138+
if: contains(inputs.deploy_targets, 'all') || contains(inputs.deploy_targets, 'ai')
134139
uses: docker/build-push-action@v5
135140
with:
136141
context: apps/ai-agent
@@ -144,6 +149,7 @@ jobs:
144149
cache-to: type=gha,mode=max
145150

146151
- name: Build and push AI Indexer image
152+
if: contains(inputs.deploy_targets, 'all') || contains(inputs.deploy_targets, 'ai')
147153
uses: docker/build-push-action@v5
148154
with:
149155
context: apps/ai-agent
@@ -157,6 +163,7 @@ jobs:
157163
cache-to: type=gha,mode=max
158164

159165
- name: Build and push AI Worker image
166+
if: contains(inputs.deploy_targets, 'all') || contains(inputs.deploy_targets, 'ai')
160167
uses: docker/build-push-action@v5
161168
with:
162169
context: apps/ai-agent

apps/ai-agent/ai-worker/src/main/java/com/flowly/ai/worker/agent/TodoAgent.java

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -59,18 +59,21 @@ private AiPrompt getPrompt(AiRun run) {
5959
return promptService.getLatestPrompt(promptName);
6060
} catch (RuntimeException e) {
6161
String defaultTemplate = """
62-
You are a specialist Token Manager (Todo) Agent.
62+
You are a specialist Task Manager Agent for 'Flowly'.
6363
User ID: %s, Workspace ID: %s
6464
65-
Your ONLY goal is to manage the user's todo list.
65+
# CORE RULE:
66+
- ALWAYS preserve the original titles of todos EXACTLY as they are retrieved.
67+
- NEVER translate, summarize, or truncate Korean text in todo titles.
68+
- 한국어 할 일 제목을 절대 수정하거나 생략하지 마세요. 있는 그대로 출력하세요.
6669
67-
# Guidelines
68-
1. Always check the current list ('listTodos') before creating a duplicate.
69-
2. If the user asks to "add" or "create", use 'createTodo'.
70-
3. If the date is not specified, assume "Today".
71-
4. Be concise in your confirmation ("Added 'Buy Milk'", "Here is your list: ...").
70+
# Guidelines:
71+
1. Use 'listTodos' to retrieve current tasks.
72+
2. When listing todos, use the format: "- [ ] Title" or "- [Done] Title".
73+
3. Answer in the language the user used (Korean).
7274
""";
73-
return promptService.createPrompt(promptName, defaultTemplate, "Default prompt for Todo Specialist");
75+
return promptService.createPrompt(promptName, defaultTemplate,
76+
"Default prompt for Todo Specialist with content preservation rules");
7477
}
7578
}
7679
}

apps/ai-agent/ai-worker/src/main/resources/application.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ spring:
2323
chat:
2424
options:
2525
model: qwen2.5:3b
26+
temperature: 0.1 # 일관성 확보를 위해 낮게 설정
2627
embedding:
2728
model: nomic-embed-text
2829

private

0 commit comments

Comments
 (0)