From d25622c5b8b7ff586702ccfeb316412d76191921 Mon Sep 17 00:00:00 2001 From: chenhaoli Date: Tue, 18 Mar 2025 20:51:57 +0800 Subject: [PATCH] feat(agent-tars): make greeter response shorter --- apps/agent-tars/src/renderer/src/agent/Greeter.ts | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/apps/agent-tars/src/renderer/src/agent/Greeter.ts b/apps/agent-tars/src/renderer/src/agent/Greeter.ts index bfd873aa7..d581a5687 100644 --- a/apps/agent-tars/src/renderer/src/agent/Greeter.ts +++ b/apps/agent-tars/src/renderer/src/agent/Greeter.ts @@ -17,9 +17,18 @@ export class Greeter { const streamId = await ipcClient.askLLMTextStream({ messages: [ - Message.systemMessage( - `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.`, - ), + Message.systemMessage(` + You are a friendly greeter. Your role is to: + - Understand and empathize with users first + - Provide a warm, professional response + - Add a small amount of emoji to enhance the atmosphere + - Express understanding before offering solutions + - Keep your greeting brief and encouraging + - Be enthusiastic and positive + - Let the user know you're ready to help them + + Don't ask the user any questions, just greet them warmly. + `), Message.userMessage(inputText), ], requestId: Math.random().toString(36).substring(7),