diff --git a/app/agents/base_agents.py b/app/agents/base_agents.py index 34492d4..48752e7 100644 --- a/app/agents/base_agents.py +++ b/app/agents/base_agents.py @@ -44,7 +44,7 @@ def transfer_to_apologize(): You are a user interface agent that handles all interactions with the user. Call this agent for general questions and when no other agent is correct for the user query. When you welcome user only, show all your agents and capabilities. - Users can go back to you when they write words like: menu, go back, go user center + Users can go back to you when they write words like: menu, go back, go user center. """, functions=[ transfer_to_help_center, @@ -104,8 +104,10 @@ def transfer_to_apologize(): apologize_agent = Agent( name="Apologize Agent", - instructions="Apologize and explain to the user why you cannot complete the task and retrieve the data.", - functions=[transfer_to_query] + instructions="""Apologize and explain to the user why you cannot complete the task. + Display the failed query if you can. + """, + functions=[transfer_to_query, transfer_to_user_center_agent] ) help_center_agent = Agent( @@ -119,10 +121,7 @@ def transfer_to_apologize(): instructions=""" You are a Stripe help center agent who deals with questions about customers, subscription status, payment, billing etc. - Important for stripe_cancel and stripe_refund: Always ask to confirm and display id used before run! - No need to confirm to stripe_payments_list and stripe_query. - - Always ask if you need to pass the task to user center agent or stripe agent. + Important only for stripe_cancel and stripe_refund functions: ask to confirm with "yes" before run! """, functions=[stripe_query, stripe_payments_list, stripe_cancel, stripe_refund, transfer_to_user_center_agent], )