Spaces:
Sleeping
Sleeping
File size: 1,158 Bytes
60f9cb3 eef2f70 60f9cb3 eef2f70 60f9cb3 eef2f70 60f9cb3 eef2f70 60f9cb3 eef2f70 60f9cb3 eef2f70 60f9cb3 eef2f70 60f9cb3 eef2f70 60f9cb3 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | /**
* AMAZON ELECTRONICS VENDOR
* Demonstrates intelligent item parsing and margin constraints.
*/
module.exports = {
agent_id: 'amazon.anp',
display_name: 'Amazon B2B Electronics',
categories: ['electronics', 'hardware', 'retail'],
capabilities: ['price_flex', 'bundle_shipping'],
getItemConstraints: (item_intent) => {
const intent = (item_intent || '').toLowerCase();
if (intent.includes('iphone 15')) {
return {
id: 'Apple iPhone 15 Pro (256GB)',
list_price: 1099.00,
floor_price: 980.00 // Tight margin on Apple products
};
}
if (intent.includes('macbook') || intent.includes('mac')) {
return {
id: 'Apple MacBook Pro M3 (14-inch)',
list_price: 1599.00,
floor_price: 1350.00 // Higher margin, more room to negotiate
};
}
// Default item if specific product isn't matched
return {
id: item_intent || 'Amazon Basics Electronics Kit',
list_price: 50.00,
floor_price: 35.00
};
}
}; |