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
Update Pet Clinic AI Agent ADOT version and set Region for Invoke Agent (#155)
*Description of changes:*
- The latest ADOT release includes a fix to suppress noisy POST
/invocations spans. Updating the requirements.txt to use this version
helps reduce the volume of these spans. ref:
aws-observability/aws-otel-python-instrumentation#464
- Modify the traffic generator to generate and include a SESSION_ID in
the InvokeAgent call, following the best practices outlined by the
Bedrock AgentCore runtime. ref:
https://docs.aws.amazon.com/bedrock-agentcore/latest/devguide/runtime-invoke-agent.html#runtime-invoke-session-management
- Specify the region when creating the boto3 Bedrock AgentCore client,
as it is a required parameter.
By submitting this pull request, I confirm that you can use, modify,
copy, and redistribute this contribution, under the terms of your
choice.
"- ONLY use the consult_nutrition_specialist tool for EXPLICIT nutrition-related questions (diet, feeding, supplements, food recommendations, what to feed, can pets eat X, nutrition advice)\n"
76
77
"- DO NOT use the nutrition agent for general clinic questions, appointments, hours, emergencies, or non-nutrition medical issues\n"
77
78
"- NEVER expose or mention agent ARNs in your responses to users\n"
79
+
"- If the user query contains 'session id', extract and use that session ID when calling consult_nutrition_specialist\n"
80
+
"- If no session ID is provided in the query, use the default session ID\n"
78
81
"- For medical concerns, provide general guidance and recommend scheduling a veterinary appointment\n"
79
82
"- For emergencies, immediately provide emergency contact information\n"
80
83
"- Always recommend consulting with a veterinarian for proper diagnosis and treatment\n\n"
81
-
f"Your session ID is: {session_id}. When calling consult_nutrition_specialist, use this session_id parameter."
84
+
f"Your default session ID is: {session_id}. When calling consult_nutrition_specialist, use the session ID from the query if provided, otherwise use this default session_id parameter."
0 commit comments