You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
content="ADMIN: You've been chatting for 7 minutes - time limit reached. Call the manage_conversation_time tool with action='end' to wrap up gracefully, unless there are special circumstances."
238
238
)
239
239
self.state_manager.seven_minute_warning_sent=True
240
+
241
+
# Extension expired - needs immediate ending
242
+
ifself.state_manager.extension_expired_pending:
243
+
logger.info("Injecting extension expired admin message via callback")
244
+
turn_ctx.add_message(
245
+
role="system",
246
+
content="ADMIN: Your granted extension time has expired. You must end the conversation gracefully now to help other visitors."
logger.info("Extension expired and no user response - ending with fallback message")
191
+
192
+
# Set ending flag to prevent timer conflicts
193
+
self.ending_conversation=True
194
+
195
+
# Fallback ending message
196
+
timeout_response="friendly:I've really enjoyed our extended conversation! To help other visitors, I'll need to wrap up here. Say 'hey barista' if you need me again."
0 commit comments