Skip to content

Commit

Permalink
fix: go out from apologize
Browse files Browse the repository at this point in the history
  • Loading branch information
Julien committed Nov 13, 2024
1 parent de4a1e4 commit 08f3193
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions app/agents/base_agents.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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(
Expand All @@ -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],
)
Expand Down

0 comments on commit 08f3193

Please sign in to comment.