const TOOL_DEFS = [ { type:"function", name:"set_mood", description:"Change your avatar's overall mood/emotional state.", parameters:{type:"object",properties:{mood:{type:"string",enum:["neutral","happy","sad","surprised","angry","sleepy"]}},required:["mood"]}}, { type:"function", name:"make_hand_gesture", description:"Make a hand gesture with your avatar.", parameters:{type:"object",properties:{gesture:{type:"string",enum:["wave","point","thumbs_up","victory","clap","heart"]}},required:["gesture"]}}, { type:"function", name:"make_facial_expression", description:"Make a quick facial expression emoji.", parameters:{type:"object",properties:{emoji:{type:"string",description:"A single face emoji."}},required:["emoji"]}}, { type:"function", name:"get_current_datetime", description:"Get current date and time.", parameters:{type:"object",properties:{},required:[]}}, { type:"function", name:"search_wikipedia", description:"Search Wikipedia for a topic.", parameters:{type:"object",properties:{query:{type:"string"}},required:["query"]}}, { type:"function", name:"search_web", description:"Search the web for current info.", parameters:{type:"object",properties:{query:{type:"string"}},required:["query"]}}, { type:"function", name:"open_catalog", description:"Open V.AI STUDIO catalog panel, optionally filtered by category.", parameters:{type:"object",properties:{category:{type:"string",description:"Category name or empty for all."}},required:["category"]}}, { type:"function", name:"search_catalog", description:"Search V.AI STUDIO catalog.", parameters:{type:"object",properties:{query:{type:"string"}},required:["query"]}}, { type:"function", name:"open_product", description:"Open product detail by SKU or name.", parameters:{type:"object",properties:{product_id:{type:"string"}},required:["product_id"]}}, { type:"function", name:"query_catalog", description:"SEARCH ALL products AND show results in panel AND return full details (name, brand, price, specs, features, image) to you. ALWAYS use this FIRST when user asks about any product, brand, price, or feature. After this use show_product if user wants details.", parameters:{type:"object",properties:{query:{type:"string",description:"Search query: product name, brand, SKU, category, or feature"}},required:["query"]}}, { type:"function", name:"show_product", description:"Open product detail modal for a specific product. Use AFTER query_catalog returned matches. Pass product name, brand or SKU.", parameters:{type:"object",properties:{product_name:{type:"string",description:"Product name, brand or SKU to show details for"}},required:["product_name"]}}, ];