mirror of
https://github.com/temporal-community/temporal-ai-agent.git
synced 2026-03-17 06:58:09 +01:00
prompt goal fix: not money order
This commit is contained in:
@@ -18,7 +18,10 @@ if SILLY_MODE is not None and SILLY_MODE != "off":
|
||||
else:
|
||||
silly_prompt = ""
|
||||
|
||||
starter_prompt_generic = silly_prompt + "Welcome me, give me a description of what you can do, then ask me for the details you need to do your job."
|
||||
starter_prompt_generic = (
|
||||
silly_prompt
|
||||
+ "Welcome me, give me a description of what you can do, then ask me for the details you need to do your job."
|
||||
)
|
||||
|
||||
goal_choose_agent_type = AgentGoal(
|
||||
id="goal_choose_agent_type",
|
||||
@@ -34,7 +37,8 @@ goal_choose_agent_type = AgentGoal(
|
||||
"1. ListAgents: List agents available to interact with. Do not ask for user confirmation for this tool. "
|
||||
"2. ChangeGoal: Change goal of agent "
|
||||
"After these tools are complete, change your goal to the new goal as chosen by the user. ",
|
||||
starter_prompt= silly_prompt + "Welcome me, give me a description of what you can do, then ask me for the details you need to do your job. List all details of all agents as provided by the output of the first tool included in this goal. ",
|
||||
starter_prompt=silly_prompt
|
||||
+ "Welcome me, give me a description of what you can do, then ask me for the details you need to do your job. List all details of all agents as provided by the output of the first tool included in this goal. ",
|
||||
example_conversation_history="\n ".join(
|
||||
[
|
||||
"agent: Here are the currently available agents.",
|
||||
@@ -310,8 +314,8 @@ goal_fin_check_account_balances = AgentGoal(
|
||||
goal_fin_move_money = AgentGoal(
|
||||
id="goal_fin_move_money",
|
||||
category_tag="fin",
|
||||
agent_name="Money Order",
|
||||
agent_friendly_description="Initiate a money movement order.",
|
||||
agent_name="Money Movement",
|
||||
agent_friendly_description="Initiate money movement.",
|
||||
tools=[
|
||||
tool_registry.financial_check_account_is_valid,
|
||||
tool_registry.financial_get_account_balances,
|
||||
@@ -320,7 +324,7 @@ goal_fin_move_money = AgentGoal(
|
||||
description="The user wants to transfer money in their account at the bank or financial institution. To assist with that goal, help the user gather args for these tools in order: "
|
||||
"1. FinCheckAccountIsValid: validate the user's account is valid"
|
||||
"2. FinCheckAccountBalance: Tell the user their account balance at the bank or financial institution"
|
||||
"3. FinMoveMoney: Initiate a money movement order",
|
||||
"3. FinMoveMoney: Initiate money movement (transfer)",
|
||||
starter_prompt=starter_prompt_generic,
|
||||
example_conversation_history="\n ".join(
|
||||
[
|
||||
@@ -340,7 +344,7 @@ goal_fin_move_money = AgentGoal(
|
||||
"user: I'd like to move $500 from savings to account number #56789",
|
||||
"user_confirmed_tool_run: <user clicks confirm on FinMoveMoney tool>",
|
||||
"tool_result: { 'status': money movement complete, 'confirmation id': 333421, 'new_balance': $2700.15 }",
|
||||
"agent: Money movement order completed! New account balance: $2700.15. Your confirmation id is 333421. "
|
||||
"agent: Money movement completed! New account balance: $2700.15. Your confirmation id is 333421. ",
|
||||
]
|
||||
),
|
||||
)
|
||||
@@ -371,7 +375,7 @@ goal_fin_loan_application = AgentGoal(
|
||||
"user: I'd like a loan for $500",
|
||||
"user_confirmed_tool_run: <user clicks confirm on FinCheckAccountSubmitLoanApproval tool>",
|
||||
"tool_result: { 'status': submitted, 'detailed_status': loan application is submitted and initial validation is complete, 'confirmation id': 333421, 'next_step': You'll receive a confirmation for final approval in three business days }",
|
||||
"agent: I have submitted your loan application process and the initial validation is successful. Your application ID is 333421. You'll receive a notification for final approval from us in three business days. "
|
||||
"agent: I have submitted your loan application process and the initial validation is successful. Your application ID is 333421. You'll receive a notification for final approval from us in three business days. ",
|
||||
]
|
||||
),
|
||||
)
|
||||
@@ -445,8 +449,7 @@ goal_ecomm_list_orders = AgentGoal(
|
||||
"Your item has left our acceptance facility and is in transit to a sorting facility on April 10, 2025 at 7:06 am in IRON RIDGE, WI 53035. \n"
|
||||
"You can find the full tracking details here: tracking_link ! \n"
|
||||
"Would you like more information about any of your other orders?",
|
||||
"user: No"
|
||||
"agent: Thanks, and have a great day!"
|
||||
"user: No" "agent: Thanks, and have a great day!",
|
||||
]
|
||||
),
|
||||
)
|
||||
@@ -471,7 +474,10 @@ goal_list.append(goal_ecomm_order_status)
|
||||
first_goal_value = os.getenv("AGENT_GOAL")
|
||||
if first_goal_value is None:
|
||||
multi_goal_mode = True # default if unset
|
||||
elif first_goal_value is not None and first_goal_value.lower() != "goal_choose_agent_type":
|
||||
elif (
|
||||
first_goal_value is not None
|
||||
and first_goal_value.lower() != "goal_choose_agent_type"
|
||||
):
|
||||
multi_goal_mode = False
|
||||
else:
|
||||
multi_goal_mode = True
|
||||
|
||||
Reference in New Issue
Block a user