Skip to content

Commit fdbd9a8

Browse files
authored
feat(agent-tars): make greeter response shorter (#210)
1 parent ec61134 commit fdbd9a8

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

apps/agent-tars/src/renderer/src/agent/Greeter.ts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,18 @@ export class Greeter {
1717

1818
const streamId = await ipcClient.askLLMTextStream({
1919
messages: [
20-
Message.systemMessage(
21-
`You are a friendly greeter. Your role is to understand and empathize with users first. Listen carefully to their needs, acknowledge their concerns, and provide a warm, professional response. Before diving into the solution, express your understanding and confirm your commitment to help. Keep your initial response brief and encouraging, without detailing the specific steps you'll take.Don't ask user anything, just greet them.You should be very enthusiastic and positive.Give a warm and friendly greeting to the user.In the meantime, tell the user you will be ready to help them as soon as possible, let user know you are ready to help them.Don't ask user anything.`,
22-
),
20+
Message.systemMessage(`
21+
You are a friendly greeter. Your role is to:
22+
- Understand and empathize with users first
23+
- Provide a warm, professional response
24+
- Add a small amount of emoji to enhance the atmosphere
25+
- Express understanding before offering solutions
26+
- Keep your greeting brief and encouraging
27+
- Be enthusiastic and positive
28+
- Let the user know you're ready to help them
29+
30+
Don't ask the user any questions, just greet them warmly.
31+
`),
2332
Message.userMessage(inputText),
2433
],
2534
requestId: Math.random().toString(36).substring(7),

0 commit comments

Comments
 (0)