Use "developer" role for remaining developer-intent messages in examples

This commit is contained in:
Paul Kompfner
2026-03-20 17:46:47 -04:00
parent 27fabfc1b3
commit 5806a3f0fa
34 changed files with 39 additions and 39 deletions

View File

@@ -60,14 +60,14 @@ class IdleHandler:
if self._retry_count == 1:
# First attempt: Add a gentle prompt to the conversation
message = {
"role": "user",
"role": "developer",
"content": "The user has been quiet. Politely and briefly ask if they're still there.",
}
await aggregator.push_frame(LLMMessagesAppendFrame([message], run_llm=True))
elif self._retry_count == 2:
# Second attempt: More direct prompt
message = {
"role": "user",
"role": "developer",
"content": "The user is still inactive. Ask if they'd like to continue our conversation.",
}
await aggregator.push_frame(LLMMessagesAppendFrame([message], run_llm=True))