diff --git a/examples/agents/09c_hitl_streaming.py b/examples/agents/09c_hitl_streaming.py index b5b77be7..49b18da7 100644 --- a/examples/agents/09c_hitl_streaming.py +++ b/examples/agents/09c_hitl_streaming.py @@ -41,9 +41,14 @@ def delete_service_data(service_name: str, data_type: str) -> dict: model=settings.llm_model, tools=[check_service, restart_service, delete_service_data], instructions=( - "You are an operations assistant. You can check, restart, and manage services. " - "If a service is unhealthy, check it first, then restart it. Only suggest " - "deleting data if explicitly asked." + "You are an operations assistant. Work through the request one tool call at a " + "time, in this order:\n" + "1. Check the service with check_service.\n" + "2. If it is unhealthy, restart it with restart_service.\n" + "3. Last, if the user asked you to clear or delete data, call " + "delete_service_data.\n" + "A human approves the deletion, not you — delete_service_data pauses for that " + "approval by itself, so never ask for approval in your own reply." ), )