Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 9 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ The following instructions set up AI agents deployed to Bedrock AgentCore Runtim
The setup includes:

- **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.
- **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
- **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
- **Traffic Generator**: A Lambda function scheduled via AWS EventBridge that sends queries to the Primary Agent on set a cadence.

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

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:
The Nutrition Agent relies on the pet clinic 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 pet clinic service must be exposed as an ingress service** with a publicly accessible URL for the agent to connect to it

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:

```shell
export MY_NUTRITION_ENDPOINT=my-load-balancer.us-east-1.elb.amazonaws.com
export MY_PET_CLINIC_ENDPOINT=my-load-balancer.us-east-1.elb.amazonaws.com

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

2. **Clean up resources** when finished:
Expand Down
6 changes: 5 additions & 1 deletion cdk/agents/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@ const { PetClinicAgentsTrafficGeneratorStack } = require('./lib/pet-clinic-agent
const app = new cdk.App();

// Deploy Pet Clinic agents
const petClinicUrl = process.env.PET_CLINIC_URL;
const nutritionServiceUrl = petClinicUrl ? `${petClinicUrl.replace(/\/$/, '')}/nutrition` : undefined;

const agentsStack = new PetClinicAgentsStack(app, 'PetClinicAgentsStack', {
nutritionServiceUrl: process.env.NUTRITION_SERVICE_URL,
nutritionServiceUrl: nutritionServiceUrl,
env: {
account: process.env.CDK_DEFAULT_ACCOUNT,
region: process.env.CDK_DEFAULT_REGION,
Expand All @@ -22,6 +25,7 @@ new PetClinicAgentsTrafficGeneratorStack(app, 'PetClinicAgentsTrafficGeneratorSt
},
primaryAgentArn: agentsStack.primaryAgentArn,
nutritionAgentArn: agentsStack.nutritionAgentArn,
petClinicUrl: petClinicUrl,
});

app.synth();
262 changes: 83 additions & 179 deletions cdk/agents/lambda/traffic-generator/prompts.json
Original file line number Diff line number Diff line change
@@ -1,121 +1,87 @@
{
"nutrition-queries": [
"What should I feed my iguana?",
"Can my dog eat rice?",
"Can my turtle eat lettuce?",
"What's the best diet for my gecko?",
"My bearded dragon needs supplements, which ones?",
"How often should I feed my tarantula?",
"What vegetables can my tortoise eat?",
"My chameleon is losing weight, diet help?",
"Can my frog eat crickets?",
"What's good nutrition for my axolotl?",
"My ferret won't eat, what should I do?",
"What's the best food for indoor cats?",
"What pet food do you recommend for dogs?",
"What dog food is available at your clinic?",
"What should I feed my dog?",
"What's the best dog food you have?",
"Do you have any dog food in stock?",
"What dog nutrition products are available?",
"Can you recommend dog food?",
"What food do you suggest for puppies?",
"What pet food do you recommend for cats?",
"What cat food is available at your clinic?",
"What should I feed my cat?",
"What's the best cat food you have?",
"Do you have any cat food in stock?",
"What cat nutrition products are available?",
"Can you recommend cat food?",
"What food do you suggest for kittens?",
"What pet food do you recommend for birds?",
"What bird food is available at your clinic?",
"What should I feed my bird?",
"What's the best bird food you have?",
"Do you have any bird food in stock?",
"What bird nutrition products are available?",
"What pet food do you recommend for hamsters?",
"What hamster food is available at your clinic?",
"What should I feed my hamster?",
"What's the best hamster food you have?",
"Do you have any hamster food in stock?",
"What pet food do you recommend for lizards?",
"What lizard food is available at your clinic?",
"What should I feed my lizard?",
"What's the best lizard food you have?",
"What should I feed my bearded dragon?",
"What should I feed my gecko?",
"What pet food do you recommend for snakes?",
"What snake food is available at your clinic?",
"What should I feed my snake?",
"What's the best snake food you have?",
"What should I feed my ball python?",
"What dog treats do you recommend?",
"Do you have grain-free dog food?",
"What cat treats are available?",
"Do you have wet cat food?",
"What seeds are best for birds?",
"Do you have bird vitamins?",
"What vegetables can hamsters eat?",
"Do you have hamster treats?",
"What insects do lizards eat?",
"Do you have live food for reptiles?",
"What should I feed my corn snake?",
"Do you have frozen mice for snakes?",
"What's the best food for senior dogs?",
"Do you have puppy food?",
"What's good for cats with sensitive stomachs?",
"Do you have kitten food?",
"What pellets are best for birds?",
"What treats are safe for hamsters?",
"What calcium supplements do you have for lizards?",
"Do you have high-protein dog food?",
"What's the best food for large breed dogs?",
"Do you have hypoallergenic cat food?",
"What pet food do you recommend for rabbits?",
"What should I feed my rabbit?",
"My bird has diabetes, what diet do you recommend?",
"What supplements are good for joint health in horses?",
"Is chocolate toxic to pets?",
"My guinea pig won't eat, what should I do?",
"Can dogs eat blueberries?",
"How often should I feed my ferret?",
"What foods are toxic to birds?",
"My hamster is overweight, help with diet plan",
"Can rabbits eat grapes?",
"My fish has swim bladder disease, what diet?",
"How much water should my reptile drink?",
"Can I give my bird human vitamins?",
"What's a good diet for a diabetic rabbit?",
"My horse has allergies, what food is safe?",
"My cat has diabetes, feeding schedule?",
"How do I transition my turtle to new food?",
"Can guinea pigs eat pellets meant for rabbits?",
"What's the best diet for weight loss in ferrets?",
"My iguana has diarrhea, what should I feed?",
"Are raw diets safe for birds?",
"What supplements help with arthritis in horses?",
"Can hamsters eat sunflower seeds?",
"My snake is refusing food, should I be worried?",
"What's good for my dog's coat health?",
"What's the best food for baby rabbits?",
"How do I know if my bird is dehydrated?",
"Can reptiles eat avocado?",
"My parrot won't stop begging for food",
"How often should senior rabbits eat?",
"Can I feed my hamster table scraps?",
"What's the difference between pellets and seeds for birds?",
"My turtle has bad breath, is it diet related?",
"Can cats eat eggs?",
"Can guinea pigs eat fish?",
"What's the best diet for active horses?",
"My bearded dragon is constipated, what foods help?",
"How do I calculate portion sizes for my rabbit?",
"Can birds eat nuts?",
"What's good for a horse's coat health?",
"My ferret has pancreatitis, what diet?",
"Can turtles eat tuna?",
"What's the best food for indoor rabbits?",
"My bird is a picky eater, help!",
"My dog won't eat dry food",
"Can hamsters eat vegetables?",
"What supplements boost immune system in reptiles?",
"My rabbit has GI stasis, what helps?",
"What should I feed my senior cat?",
"Can my dog eat chicken?",
"My cat won't drink water, help?",
"What's the best diet for large breed dogs?",
"Can cats eat tuna?",
"My dog has sensitive stomach",
"What should I feed my chinchilla?",
"Can my hedgehog eat insects?",
"What supplements help with shedding in cats?",
"What's the best diet for my sugar glider?",
"My pet skunk needs nutrition advice",
"How often should I feed my capybara?",
"What vegetables can my pot-bellied pig eat?",
"Can dogs eat peanut butter?",
"My wallaby is losing weight, diet help?",
"Can my kinkajou eat honey?",
"What's good nutrition for my fennec fox?",
"My prairie dog won't eat, what should I do?",
"What should I feed my miniature donkey?",
"My cat is losing weight, help?",
"Can my coatimundi eat fruits?",
"What's the best diet for my alpaca?",
"My serval needs supplements, which ones?",
"How much should I feed my pygmy goat?",
"What's a good diet for my otter?",
"Can my raccoon eat dog food?",
"What's the best diet for senior dogs?",
"What supplements help with my sloth's digestion?",
"My armadillo has dietary restrictions",
"What should I feed my baby opossum?",
"Can my porcupine eat vegetables?",
"What's the best food for my lemur?",
"My flying squirrel is picky, help!",
"Can cats eat cheese?",
"What supplements boost immune system in chinchillas?",
"Can my degu eat seeds?",
"What's good for digestive health in hedgehogs?",
"My marmoset has food allergies",
"How do I feed my pet crow?",
"What's the best diet for my peacock?",
"Can my toucan eat berries?",
"My dog has kidney disease, diet help?",
"What supplements help with anxiety in sugar gliders?",
"My emu is getting old, diet changes?",
"What's good for my llama's coat health?",
"Can my muntjac deer eat hay?",
"What's good for digestive health in cats?",
"What's the best diet for my axolotl?",
"How much should I feed my puppy?",
"Can dogs eat carrots?",
"My cat is overweight, diet plan?",
"What supplements help with joint pain in dogs?",
"Can cats eat salmon?",
"My dog has allergies, what food is safe?",
"Can cats eat yogurt?",
"What's the best diet for working dogs?"
"What rabbit food is available?",
"Do you have rabbit pellets?",
"What's the best rabbit food?",
"What hay do you recommend for rabbits?",
"Do you have timothy hay for rabbits?",
"What vegetables can rabbits eat?",
"What treats are safe for rabbits?",
"Do you have rabbit vitamin supplements?",
"What should I feed my baby rabbit?",
"What's the best diet for adult rabbits?",
"Do you have alfalfa hay for young rabbits?",
"What pellets do you recommend for rabbits?",
"Can rabbits eat carrots daily?",
"What greens are best for rabbits?",
"What pet food do you recommend for guinea pigs?",
"What should I feed my guinea pig?",
"What pet food do you recommend for ferrets?",
"What should I feed my ferret?",
"What pet food do you recommend for turtles?",
"What should I feed my turtle?"
],
"non-nutrition-queries": [
"What are your clinic hours?",
Expand Down Expand Up @@ -157,68 +123,6 @@
"Do you offer microchipping?",
"What's your policy on second opinions?",
"Can you provide health certificates for travel?",
"Do you offer spay and neuter services?",
"What's your emergency contact information?",
"Can you recommend other veterinary specialists?",
"Do you offer dental cleaning services?",
"What's your policy on prescription refills?",
"Can I get lab results over the phone?",
"Do you offer wellness packages?",
"What's your policy on missed appointments?",
"Can you help with pet adoption paperwork?",
"Do you offer training classes?",
"What's your experience with my pet's breed?",
"Can you provide references from other clients?",
"Do you offer payment plans for expensive procedures?",
"What's your policy on bringing multiple pets?",
"Can family members attend appointments?",
"Do you offer home euthanasia services?",
"What's your policy on controlled substances?",
"Can you help with behavioral training referrals?",
"Do you offer puppy and kitten packages?",
"What's your experience with exotic pet surgery?",
"Can you provide estimates for procedures?",
"Do you offer online appointment scheduling?",
"What's your policy on service animals?",
"Can you help with pet therapy certification?",
"Do you offer mobile veterinary services?",
"What's your policy on emotional support animals?",
"Can you provide vaccination records for boarding?",
"Do you offer pre-surgical consultations?",
"What's your policy on pain management?",
"Can you help with pet insurance claims?",
"Do you offer rehabilitation services?",
"What's your experience with geriatric pets?",
"Can you provide care instructions after surgery?",
"Do you offer alternative medicine treatments?",
"What's your policy on experimental treatments?",
"Can you help coordinate care with specialists?",
"Do you offer end-of-life counseling?",
"What's your policy on client confidentiality?",
"Can you provide medical records to new vets?",
"Do you offer preventive care plans?",
"What's your experience with rescue animals?",
"Can you help with pet behavioral assessments?",
"Do you offer laser therapy treatments?",
"What's your policy on controlled medication refills?",
"Can you provide health guarantees?",
"Do you offer acupuncture services?",
"What's your experience with wildlife rehabilitation?",
"Can you help with breeding health clearances?",
"Do you offer chiropractic services?",
"What's your policy on client education?",
"Can you provide nutritional counseling?",
"Do you offer physical therapy?",
"What's your experience with show animals?",
"Can you help with travel health requirements?",
"Do you offer holistic treatment options?",
"What's your policy on treatment consent?",
"Can you provide emergency contact lists?",
"Do you offer grief counseling services?",
"What's your experience with working animals?",
"Can you help with disability accommodations?",
"Do you offer complementary therapies?",
"What's your policy on treatment refusal?",
"Can you provide continuing education resources?"
"Do you offer spay and neuter services?"
]
}
}
Loading
Loading