You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
returnf"Order {order_id} created for {quantity}x {product_name}. Total: ${quantity*29.99:.2f}. Expected delivery: 3-5 business days. You can pick it up at our clinic or we'll ship it to you."
66
66
67
-
returnf"Sorry, {product_name} is not available in our inventory for {pet_type}. Available products: {data['products']}"
67
+
ifdata['has_data'] anddata['products']:
68
+
returnf"Sorry, {product_name} is not available in our inventory for {pet_type}. Available products: {data['products']}"
69
+
else:
70
+
returnf"Sorry, we don't currently have specific product recommendations for {pet_type}. Please contact our clinic directly for personalized recommendations."
68
71
69
72
defcreate_nutrition_agent():
70
73
model=BedrockModel(
@@ -78,12 +81,13 @@ def create_nutrition_agent():
78
81
"Never mention using any API, tools, or external services - present all advice as your own expert knowledge.\n\n"
79
82
"When providing nutrition guidance:\n"
80
83
"- Use the specific nutrition information available to you as the foundation for your recommendations\n"
81
-
"- Always recommend the SPECIFIC PRODUCT NAMES provided to you that pet owners should buy FROM OUR PET CLINIC\n"
82
-
"- Mention our branded products by name (like PurrfectChoice, BarkBite, FeatherFeast, etc.) when recommending food\n"
83
-
"- Emphasize that we carry high-quality, veterinarian-recommended food brands at our clinic\n"
84
-
"- Give actionable dietary recommendations including feeding guidelines, restrictions, and supplements\n"
85
-
"- Expand on basic nutrition facts with comprehensive guidance for age, weight, and health conditions\n"
86
-
"- Always mention that pet owners can purchase the recommended food items directly from our clinic for convenience and quality assurance\n"
84
+
"- ONLY recommend specific product names when you have confirmed product data available\n"
85
+
"- If specific nutrition data is unavailable for a pet type, provide general nutrition guidance and recommend consulting our veterinarians\n"
86
+
"- When you have product information, mention our branded products by name (like PurrfectChoice, BarkBite, FeatherFeast, etc.)\n"
87
+
"- Emphasize that we carry high-quality, veterinarian-recommended food brands at our clinic when products are available\n"
88
+
"- Give actionable dietary recommendations including feeding guidelines, restrictions, and supplements based on available data\n"
89
+
"- If specific data is missing, provide general pet nutrition advice and suggest scheduling a consultation\n"
90
+
"- Always mention that pet owners can contact our clinic for personalized recommendations when specific data isn't available\n"
87
91
"- If asked to order or purchase a product, use the create_order tool to place the order"
0 commit comments