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
11 changes: 8 additions & 3 deletions examples/agents/09c_hitl_streaming.py
Original file line number Diff line number Diff line change
Expand Up @@ -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."
),
)

Expand Down
Loading