From 03c4759895a7087f0fcc8605e48ba381de841947 Mon Sep 17 00:00:00 2001 From: zcr Date: Thu, 5 Mar 2026 15:41:39 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E6=9B=B4=E6=96=B0occasion=E6=98=A0?= =?UTF-8?q?=E5=B0=84=E6=9C=8D=E8=A3=85=E7=B1=BB=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ChatbotAgent/core/stylist_agent_server.py | 15 +++++++++++++-- app/taxonomy.py | 2 +- 2 files changed, 14 insertions(+), 3 deletions(-) diff --git a/app/server/ChatbotAgent/core/stylist_agent_server.py b/app/server/ChatbotAgent/core/stylist_agent_server.py index 3bbf5d8..b8fc352 100644 --- a/app/server/ChatbotAgent/core/stylist_agent_server.py +++ b/app/server/ChatbotAgent/core/stylist_agent_server.py @@ -250,9 +250,20 @@ class AsyncStylistAgent: if occasion == "Bridal / Wedding": request_summary += "IMPORTANT: Strictly only recommend colorful or white items (clothing, shoes, and bags)." elif occasion == "Evening": - request_summary += " **EVENING STYLE MANDATE:** Prioritize high textural contrast. Avoid flat/matte monochrome or total black looks. Ensure visual depth through layering (e.g., varying lengths or sheer panels). Use statement accessories to break simple silhouettes." + request_summary += (" **EVENING STYLE MANDATE:** Prioritize high textural contrast. Avoid flat/matte monochrome or total black looks. Ensure visual depth through layering " + "(e.g., varying lengths or sheer panels). Use statement accessories to break simple silhouettes.") elif occasion == "Business / workwear": - request_summary += " **WORKWEAR STYLE MANDATE:** Focus on 'Power Dressing' silhouettes—prioritize sharp, oversized blazers paired with floor-length wide-leg trousers. Use tonal dressing (different shades of the same color) to create a sophisticated, elongated look. Balance masculine tailoring with polished, feminine textures. Select structured, architectural bags and pointed-toe or sleek loafers to maintain professional sharpness." + request_summary += (" **WORKWEAR STYLE MANDATE:** Focus on 'Power Dressing' silhouettes—prioritize sharp, oversized blazers paired with floor-length wide-leg trousers. " + "Use tonal dressing to create a sophisticated, elongated look. Balance masculine tailoring with polished, feminine textures. " + "Select structured, architectural bags and pointed-toe or sleek loafers. MANDATORY: Include a complete gold or silver jewelry set " + "(earrings, necklaces, bracelets, and rings).") + elif occasion == "Outdoor": + request_summary += " **OUTDOOR STYLE MANDATE:** No jeans allowed. Focus on functional yet polished alternatives like chinos, technical fabrics, or tailored shorts." + elif occasion == "Festival / Concert": + request_summary += " **FESTIVAL STYLE MANDATE:** No maxi dresses or maxi skirts. Prioritize shorter hemlines, sets, or trousers to ensure ease of movement." + elif occasion == "Beach / Swim": + request_summary += " **BEACH STYLE MANDATE:** No denim allowed. Focus on breathable, lightweight fabrics like linen, silk, or crochet." + sys_template = template.format( gender=self.gender, current_category=current_category.upper(), diff --git a/app/taxonomy.py b/app/taxonomy.py index 902f8da..bb010a8 100644 --- a/app/taxonomy.py +++ b/app/taxonomy.py @@ -163,7 +163,7 @@ OCCASION_CATEGORY_MAP = { "accessories": ["earrings", "necklaces", "bracelets", "rings"] }, "Outdoor": { - "clothing": ["jackets", "jeans", "sweaters"], + "clothing": ["jackets", "sweaters", "pants", "joggers", "leggings", "shorts"], "shoes": ["boots"], "bags": ["backpacks", "travel bags"], "accessories": []