Skip to content

Pet Clinic Agent is recommending nutritional products that we don't sell #181

@liustve

Description

@liustve

Key Issues Identified

1. Pet Clinic Agent Performance Problems

High latency: Agent operations taking 94+ seconds to complete
3.85% fault rate with KeyError exceptions on 'output' field
Stack trace errors in the Strands event loop during model execution

2. Nutrition Service Catalog Issues

24.61% error rate on the GET /nutrition/:pet_type endpoint
Consistent 404 errors when trying to fetch nutrition data from the catalog
Database connectivity issues with MongoDB (test|mongodb|27017)

3. Service Integration Problems

• The pet clinic agent calls a nutrition_agent.DEFAULT which then tries to access the nutrition-service-nodejs
• The nutrition service is returning 404 errors, indicating products aren't being found in the catalog
• This forces the agent to potentially recommend products from its training data instead of your actual catalog

Root Cause Analysis

The agent is recommending products not in your catalog because:

  1. Catalog lookup failures: The nutrition service is failing to find products (404 errors) when the agent queries for specific pet types
  2. Fallback behavior: When the catalog service fails, the agent likely falls back to its general knowledge base, recommending products it was trained on
    rather than your specific inventory
  3. Error handling gaps: The 'output' KeyError suggests the agent isn't properly handling failed catalog responses

Help! My Pet Clinic Agent is recommending nutritional products that we don't sell! @awsapm

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions