We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 85ea194 commit f5b1084Copy full SHA for f5b1084
samples-v2/openai_agents/customer_service/customer_service.py
@@ -148,6 +148,9 @@ def main(context: DurableAIAgentContext):
148
context.set_custom_status("How can I help you today?")
149
while True:
150
user_input = yield context.wait_for_external_event("UserInput")
151
+ if user_input is None or user_input.strip().lower() in ["exit", "quit", "bye"]:
152
+ context.set_custom_status("Goodbye!")
153
+ break
154
context.set_custom_status("Thinking...")
155
with trace("Customer service", group_id=conversation_id):
156
input_items.append({"content": user_input, "role": "user"})
0 commit comments