Skip to content
Open
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
9 changes: 7 additions & 2 deletions examples/chat_supervisor/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,13 @@ async def _cleanup(self):
4. Never mention "the supervisor" or "another model" to the caller

If it's taking time: "Still working on this..." or "Almost there..."
When you get the response: Synthesize it into natural, conversational language.
Break complex explanations into digestible pieces.

IMPORTANT - When you receive the ask_supervisor result:
- ALWAYS announce the answer immediately and prominently, even if the conversation has moved on
- If the user asked a different question in the meantime, answer their new question first, then say something like "Oh, and about your earlier question..." and share the supervisor's answer
- Never silently ignore or skip a supervisor result — the user is waiting for it
- Synthesize the response into natural, conversational language
- Break complex explanations into digestible pieces

## end_call
Use when the caller says goodbye, thanks, or is clearly done.
Expand Down