gemma-avatar / src /tool-defs-complete.js
bep40's picture
Upload src/tool-defs-complete.js
7bb9f84 verified
Raw
History Blame Contribute Delete
1.13 kB
// RAG: query_catalog — search + return structured product data in ONE call + update UI panel
{ type: "function", name: "query_catalog", description: "SEARCH all products AND show results in panel AND return full details (name, brand, price, specs, features, image, summary) in ONE call. ALWAYS use this FIRST when user asks about any product, brand, price, feature or model. The catalog panel updates automatically when you use this.", parameters: { type: "object", properties: { query: { type: "string", description: "Search query: product name, brand, SKU, category, or feature" } }, required: ["query"] } },
// show_product — open detail modal for a specific product (call AFTER query_catalog)
{ type: "function", name: "show_product", description: "Open the product detail modal for a specific product. Call AFTER query_catalog returned matches. Pass product name, brand name, or SKU. Shows full specs, features, and images.", parameters: { type: "object", properties: { product_name: { type: "string", description: "Product name, brand name, or SKU to show details for" } }, required: ["product_name"] } },
];