mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-06-07 07:55:16 +02:00
chore: change role in user idle handle
This commit is contained in:
parent
a381b36c95
commit
4bb3b25c44
1 changed files with 2 additions and 2 deletions
|
|
@ -47,14 +47,14 @@ class UserIdleHandler:
|
|||
|
||||
if self._retry_count == 1:
|
||||
message = {
|
||||
"role": "system",
|
||||
"role": "user",
|
||||
"content": "The user has been quiet. Politely and briefly ask if they're still there in the language that the user has been speaking so far.",
|
||||
}
|
||||
await aggregator.push_frame(LLMMessagesAppendFrame([message], run_llm=True))
|
||||
return
|
||||
|
||||
message = {
|
||||
"role": "system",
|
||||
"role": "user",
|
||||
"content": "The user has been quiet. We will be disconnecting the call now. Wish them a good day in the language that the user has been speaking so far.",
|
||||
}
|
||||
await aggregator.push_frame(LLMMessagesAppendFrame([message], run_llm=True))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue