subashpoudel commited on
Commit
ee03825
·
1 Parent(s): 3f2f8aa

Updated the prompt

Browse files
business_interaction_agent/utils/prompts.py CHANGED
@@ -44,7 +44,7 @@ Keep your response:
44
  '''.strip()
45
 
46
 
47
- def check_state_update_prompt(business_details: dict, user_messages: str):
48
  return f"""
49
  You are an expert business assistant tasked with updating business details by thoroughly analyzing user messages. Your goal is to identify and apply changes to the business details only when the user message explicitly provides new or conflicting information relevant to the business details. Follow these guidelines:
50
 
@@ -72,6 +72,23 @@ Output:
72
  Return the updated business details in the same dictionary format as provided. If no changes are warranted, return the original business details unchanged.
73
  """
74
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
75
 
76
 
77
 
 
44
  '''.strip()
45
 
46
 
47
+ def check_state_update_prompt_old(business_details: dict, user_messages: str):
48
  return f"""
49
  You are an expert business assistant tasked with updating business details by thoroughly analyzing user messages. Your goal is to identify and apply changes to the business details only when the user message explicitly provides new or conflicting information relevant to the business details. Follow these guidelines:
50
 
 
72
  Return the updated business details in the same dictionary format as provided. If no changes are warranted, return the original business details unchanged.
73
  """
74
 
75
+ def check_state_update_prompt(business_details: dict, user_messages: str):
76
+ return f"""
77
+ You are a business assistant. Your job is to check if the user's message changes any of the current business details.
78
+
79
+ Rules:
80
+ 1. Only change details if the user gives **clear new or different information**.
81
+ 2. If the message does **not change anything**, return the same business details.
82
+ 3. **Never return empty values.** If you can't update something, keep the current value.
83
+ 4. Keep the **same format** as the original business details (same keys and data types).
84
+
85
+ Input:
86
+ Current business details: {str(business_details)}
87
+ User message: {user_messages}
88
+
89
+ Output:
90
+ Return the updated business details in the same dictionary format. If nothing changed, return the original business details.
91
+ """.strip()
92
 
93
 
94