Skip to content

feat(agent-tars): make greeter response shorter #210

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 22, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 12 additions & 3 deletions apps/agent-tars/src/renderer/src/agent/Greeter.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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),
Expand Down
Loading