Skip to content

Commit b3664c7

Browse files
liustveADOT Patch workflow
andauthored
Integrate Pet Clinic Agents to Pet Clinic Front end (#205)
*Description of changes:* By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice. --------- Co-authored-by: ADOT Patch workflow <[email protected]>
1 parent 8872fea commit b3664c7

File tree

11 files changed

+340
-254
lines changed

11 files changed

+340
-254
lines changed

README.md

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ The following instructions set up AI agents deployed to Bedrock AgentCore Runtim
176176
The setup includes:
177177

178178
- **Primary Agent**: A general pet clinic assistant that handles appointment scheduling, clinic information, and emergency contacts. Any nutrition related queries will be delegated to the Nutrition Agent.
179-
- **Nutrition Agent**: A specialized agent focused on pet nutrition, diet recommendations, and feeding guidelines. When deployed with the Pet Clinic EKS demo, it utilizes the nutrition service API at `http://<ingress-host>/nutrition` to base its answers on data from the service
179+
- **Nutrition Agent**: A specialized agent focused on pet nutrition, diet recommendations, and feeding guidelines. When deployed with the Pet Clinic EKS demo, it utilizes the pet clinic service API to base its answers on data from the service
180180
- **Traffic Generator**: A Lambda function scheduled via AWS EventBridge that sends queries to the Primary Agent on set a cadence.
181181

182182
**Prerequisites:**
@@ -194,12 +194,17 @@ The setup includes:
194194
cd scripts/agents && ./setup-agents-demo.sh --region=region-name
195195
```
196196

197-
The Nutrition Agent relies on the nutrition service to retrieve pet nutrition information and provide accurate dietary recommendations. To enable this feature, the [EKS demo](#eks-demo) must be set up first. The deployment script will attempt to auto-discover the nutrition service endpoint from your EKS cluster. If auto-discovery fails or you want to specify a custom endpoint, you can manually provide the nutrition service URL using the `--nutrition-service-url` parameter:
197+
The Nutrition Agent relies on the pet clinic service to retrieve pet nutrition information and provide accurate dietary recommendations. To enable this feature:
198+
199+
- The [EKS demo](#eks-demo) must be set up first
200+
- **The pet clinic service must be exposed as an ingress service** with a publicly accessible URL for the agent to connect to it
201+
202+
The deployment script will attempt to auto-discover the pet clinic service endpoint from your EKS cluster. If auto-discovery fails or you want to specify a custom endpoint, you can manually provide the pet clinic service URL using the `--pet-clinic-url` parameter:
198203

199204
```shell
200-
export MY_NUTRITION_ENDPOINT=my-load-balancer.us-east-1.elb.amazonaws.com
205+
export MY_PET_CLINIC_ENDPOINT=my-load-balancer.us-east-1.elb.amazonaws.com
201206

202-
cd scripts/agents && ./setup-agents-demo.sh --region=us-east-1 --nutrition-service-url=http://${MY_NUTRITION_ENDPOINT}/nutrition
207+
cd scripts/agents && ./setup-agents-demo.sh --region=us-east-1 --pet-clinic-url=http://${MY_PET_CLINIC_ENDPOINT}
203208
```
204209

205210
2. **Clean up resources** when finished:

cdk/agents/app.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,11 @@ const { PetClinicAgentsTrafficGeneratorStack } = require('./lib/pet-clinic-agent
66
const app = new cdk.App();
77

88
// Deploy Pet Clinic agents
9+
const petClinicUrl = process.env.PET_CLINIC_URL;
10+
const nutritionServiceUrl = petClinicUrl ? `${petClinicUrl.replace(/\/$/, '')}/nutrition` : undefined;
11+
912
const agentsStack = new PetClinicAgentsStack(app, 'PetClinicAgentsStack', {
10-
nutritionServiceUrl: process.env.NUTRITION_SERVICE_URL,
13+
nutritionServiceUrl: nutritionServiceUrl,
1114
env: {
1215
account: process.env.CDK_DEFAULT_ACCOUNT,
1316
region: process.env.CDK_DEFAULT_REGION,
@@ -22,6 +25,7 @@ new PetClinicAgentsTrafficGeneratorStack(app, 'PetClinicAgentsTrafficGeneratorSt
2225
},
2326
primaryAgentArn: agentsStack.primaryAgentArn,
2427
nutritionAgentArn: agentsStack.nutritionAgentArn,
28+
petClinicUrl: petClinicUrl,
2529
});
2630

2731
app.synth();
Lines changed: 83 additions & 179 deletions
Original file line numberDiff line numberDiff line change
@@ -1,121 +1,87 @@
11
{
22
"nutrition-queries": [
3-
"What should I feed my iguana?",
4-
"Can my dog eat rice?",
5-
"Can my turtle eat lettuce?",
6-
"What's the best diet for my gecko?",
7-
"My bearded dragon needs supplements, which ones?",
8-
"How often should I feed my tarantula?",
9-
"What vegetables can my tortoise eat?",
10-
"My chameleon is losing weight, diet help?",
11-
"Can my frog eat crickets?",
12-
"What's good nutrition for my axolotl?",
13-
"My ferret won't eat, what should I do?",
14-
"What's the best food for indoor cats?",
3+
"What pet food do you recommend for dogs?",
4+
"What dog food is available at your clinic?",
5+
"What should I feed my dog?",
6+
"What's the best dog food you have?",
7+
"Do you have any dog food in stock?",
8+
"What dog nutrition products are available?",
9+
"Can you recommend dog food?",
10+
"What food do you suggest for puppies?",
11+
"What pet food do you recommend for cats?",
12+
"What cat food is available at your clinic?",
13+
"What should I feed my cat?",
14+
"What's the best cat food you have?",
15+
"Do you have any cat food in stock?",
16+
"What cat nutrition products are available?",
17+
"Can you recommend cat food?",
18+
"What food do you suggest for kittens?",
19+
"What pet food do you recommend for birds?",
20+
"What bird food is available at your clinic?",
21+
"What should I feed my bird?",
22+
"What's the best bird food you have?",
23+
"Do you have any bird food in stock?",
24+
"What bird nutrition products are available?",
25+
"What pet food do you recommend for hamsters?",
26+
"What hamster food is available at your clinic?",
27+
"What should I feed my hamster?",
28+
"What's the best hamster food you have?",
29+
"Do you have any hamster food in stock?",
30+
"What pet food do you recommend for lizards?",
31+
"What lizard food is available at your clinic?",
32+
"What should I feed my lizard?",
33+
"What's the best lizard food you have?",
34+
"What should I feed my bearded dragon?",
35+
"What should I feed my gecko?",
36+
"What pet food do you recommend for snakes?",
37+
"What snake food is available at your clinic?",
38+
"What should I feed my snake?",
39+
"What's the best snake food you have?",
40+
"What should I feed my ball python?",
41+
"What dog treats do you recommend?",
42+
"Do you have grain-free dog food?",
43+
"What cat treats are available?",
44+
"Do you have wet cat food?",
45+
"What seeds are best for birds?",
46+
"Do you have bird vitamins?",
47+
"What vegetables can hamsters eat?",
48+
"Do you have hamster treats?",
49+
"What insects do lizards eat?",
50+
"Do you have live food for reptiles?",
51+
"What should I feed my corn snake?",
52+
"Do you have frozen mice for snakes?",
53+
"What's the best food for senior dogs?",
54+
"Do you have puppy food?",
55+
"What's good for cats with sensitive stomachs?",
56+
"Do you have kitten food?",
57+
"What pellets are best for birds?",
58+
"What treats are safe for hamsters?",
59+
"What calcium supplements do you have for lizards?",
60+
"Do you have high-protein dog food?",
61+
"What's the best food for large breed dogs?",
62+
"Do you have hypoallergenic cat food?",
63+
"What pet food do you recommend for rabbits?",
1564
"What should I feed my rabbit?",
16-
"My bird has diabetes, what diet do you recommend?",
17-
"What supplements are good for joint health in horses?",
18-
"Is chocolate toxic to pets?",
19-
"My guinea pig won't eat, what should I do?",
20-
"Can dogs eat blueberries?",
21-
"How often should I feed my ferret?",
22-
"What foods are toxic to birds?",
23-
"My hamster is overweight, help with diet plan",
24-
"Can rabbits eat grapes?",
25-
"My fish has swim bladder disease, what diet?",
26-
"How much water should my reptile drink?",
27-
"Can I give my bird human vitamins?",
28-
"What's a good diet for a diabetic rabbit?",
29-
"My horse has allergies, what food is safe?",
30-
"My cat has diabetes, feeding schedule?",
31-
"How do I transition my turtle to new food?",
32-
"Can guinea pigs eat pellets meant for rabbits?",
33-
"What's the best diet for weight loss in ferrets?",
34-
"My iguana has diarrhea, what should I feed?",
35-
"Are raw diets safe for birds?",
36-
"What supplements help with arthritis in horses?",
37-
"Can hamsters eat sunflower seeds?",
38-
"My snake is refusing food, should I be worried?",
39-
"What's good for my dog's coat health?",
40-
"What's the best food for baby rabbits?",
41-
"How do I know if my bird is dehydrated?",
42-
"Can reptiles eat avocado?",
43-
"My parrot won't stop begging for food",
44-
"How often should senior rabbits eat?",
45-
"Can I feed my hamster table scraps?",
46-
"What's the difference between pellets and seeds for birds?",
47-
"My turtle has bad breath, is it diet related?",
48-
"Can cats eat eggs?",
49-
"Can guinea pigs eat fish?",
50-
"What's the best diet for active horses?",
51-
"My bearded dragon is constipated, what foods help?",
52-
"How do I calculate portion sizes for my rabbit?",
53-
"Can birds eat nuts?",
54-
"What's good for a horse's coat health?",
55-
"My ferret has pancreatitis, what diet?",
56-
"Can turtles eat tuna?",
57-
"What's the best food for indoor rabbits?",
58-
"My bird is a picky eater, help!",
59-
"My dog won't eat dry food",
60-
"Can hamsters eat vegetables?",
61-
"What supplements boost immune system in reptiles?",
62-
"My rabbit has GI stasis, what helps?",
63-
"What should I feed my senior cat?",
64-
"Can my dog eat chicken?",
65-
"My cat won't drink water, help?",
66-
"What's the best diet for large breed dogs?",
67-
"Can cats eat tuna?",
68-
"My dog has sensitive stomach",
69-
"What should I feed my chinchilla?",
70-
"Can my hedgehog eat insects?",
71-
"What supplements help with shedding in cats?",
72-
"What's the best diet for my sugar glider?",
73-
"My pet skunk needs nutrition advice",
74-
"How often should I feed my capybara?",
75-
"What vegetables can my pot-bellied pig eat?",
76-
"Can dogs eat peanut butter?",
77-
"My wallaby is losing weight, diet help?",
78-
"Can my kinkajou eat honey?",
79-
"What's good nutrition for my fennec fox?",
80-
"My prairie dog won't eat, what should I do?",
81-
"What should I feed my miniature donkey?",
82-
"My cat is losing weight, help?",
83-
"Can my coatimundi eat fruits?",
84-
"What's the best diet for my alpaca?",
85-
"My serval needs supplements, which ones?",
86-
"How much should I feed my pygmy goat?",
87-
"What's a good diet for my otter?",
88-
"Can my raccoon eat dog food?",
89-
"What's the best diet for senior dogs?",
90-
"What supplements help with my sloth's digestion?",
91-
"My armadillo has dietary restrictions",
92-
"What should I feed my baby opossum?",
93-
"Can my porcupine eat vegetables?",
94-
"What's the best food for my lemur?",
95-
"My flying squirrel is picky, help!",
96-
"Can cats eat cheese?",
97-
"What supplements boost immune system in chinchillas?",
98-
"Can my degu eat seeds?",
99-
"What's good for digestive health in hedgehogs?",
100-
"My marmoset has food allergies",
101-
"How do I feed my pet crow?",
102-
"What's the best diet for my peacock?",
103-
"Can my toucan eat berries?",
104-
"My dog has kidney disease, diet help?",
105-
"What supplements help with anxiety in sugar gliders?",
106-
"My emu is getting old, diet changes?",
107-
"What's good for my llama's coat health?",
108-
"Can my muntjac deer eat hay?",
109-
"What's good for digestive health in cats?",
110-
"What's the best diet for my axolotl?",
111-
"How much should I feed my puppy?",
112-
"Can dogs eat carrots?",
113-
"My cat is overweight, diet plan?",
114-
"What supplements help with joint pain in dogs?",
115-
"Can cats eat salmon?",
116-
"My dog has allergies, what food is safe?",
117-
"Can cats eat yogurt?",
118-
"What's the best diet for working dogs?"
65+
"What rabbit food is available?",
66+
"Do you have rabbit pellets?",
67+
"What's the best rabbit food?",
68+
"What hay do you recommend for rabbits?",
69+
"Do you have timothy hay for rabbits?",
70+
"What vegetables can rabbits eat?",
71+
"What treats are safe for rabbits?",
72+
"Do you have rabbit vitamin supplements?",
73+
"What should I feed my baby rabbit?",
74+
"What's the best diet for adult rabbits?",
75+
"Do you have alfalfa hay for young rabbits?",
76+
"What pellets do you recommend for rabbits?",
77+
"Can rabbits eat carrots daily?",
78+
"What greens are best for rabbits?",
79+
"What pet food do you recommend for guinea pigs?",
80+
"What should I feed my guinea pig?",
81+
"What pet food do you recommend for ferrets?",
82+
"What should I feed my ferret?",
83+
"What pet food do you recommend for turtles?",
84+
"What should I feed my turtle?"
11985
],
12086
"non-nutrition-queries": [
12187
"What are your clinic hours?",
@@ -157,68 +123,6 @@
157123
"Do you offer microchipping?",
158124
"What's your policy on second opinions?",
159125
"Can you provide health certificates for travel?",
160-
"Do you offer spay and neuter services?",
161-
"What's your emergency contact information?",
162-
"Can you recommend other veterinary specialists?",
163-
"Do you offer dental cleaning services?",
164-
"What's your policy on prescription refills?",
165-
"Can I get lab results over the phone?",
166-
"Do you offer wellness packages?",
167-
"What's your policy on missed appointments?",
168-
"Can you help with pet adoption paperwork?",
169-
"Do you offer training classes?",
170-
"What's your experience with my pet's breed?",
171-
"Can you provide references from other clients?",
172-
"Do you offer payment plans for expensive procedures?",
173-
"What's your policy on bringing multiple pets?",
174-
"Can family members attend appointments?",
175-
"Do you offer home euthanasia services?",
176-
"What's your policy on controlled substances?",
177-
"Can you help with behavioral training referrals?",
178-
"Do you offer puppy and kitten packages?",
179-
"What's your experience with exotic pet surgery?",
180-
"Can you provide estimates for procedures?",
181-
"Do you offer online appointment scheduling?",
182-
"What's your policy on service animals?",
183-
"Can you help with pet therapy certification?",
184-
"Do you offer mobile veterinary services?",
185-
"What's your policy on emotional support animals?",
186-
"Can you provide vaccination records for boarding?",
187-
"Do you offer pre-surgical consultations?",
188-
"What's your policy on pain management?",
189-
"Can you help with pet insurance claims?",
190-
"Do you offer rehabilitation services?",
191-
"What's your experience with geriatric pets?",
192-
"Can you provide care instructions after surgery?",
193-
"Do you offer alternative medicine treatments?",
194-
"What's your policy on experimental treatments?",
195-
"Can you help coordinate care with specialists?",
196-
"Do you offer end-of-life counseling?",
197-
"What's your policy on client confidentiality?",
198-
"Can you provide medical records to new vets?",
199-
"Do you offer preventive care plans?",
200-
"What's your experience with rescue animals?",
201-
"Can you help with pet behavioral assessments?",
202-
"Do you offer laser therapy treatments?",
203-
"What's your policy on controlled medication refills?",
204-
"Can you provide health guarantees?",
205-
"Do you offer acupuncture services?",
206-
"What's your experience with wildlife rehabilitation?",
207-
"Can you help with breeding health clearances?",
208-
"Do you offer chiropractic services?",
209-
"What's your policy on client education?",
210-
"Can you provide nutritional counseling?",
211-
"Do you offer physical therapy?",
212-
"What's your experience with show animals?",
213-
"Can you help with travel health requirements?",
214-
"Do you offer holistic treatment options?",
215-
"What's your policy on treatment consent?",
216-
"Can you provide emergency contact lists?",
217-
"Do you offer grief counseling services?",
218-
"What's your experience with working animals?",
219-
"Can you help with disability accommodations?",
220-
"Do you offer complementary therapies?",
221-
"What's your policy on treatment refusal?",
222-
"Can you provide continuing education resources?"
126+
"Do you offer spay and neuter services?"
223127
]
224-
}
128+
}

0 commit comments

Comments
 (0)