sellersnode / modules /dummy.js
publicstring's picture
Update modules/dummy.js
e666158 verified
Raw History Blame
1.14 kB
/**
* DUMMY VENDOR TEMPLATE
* Use this as a base for adding new merchants to the Seller Hub.
*/
module.exports = {
// The unique protocol address for this seller (MUST end in .anp)
agent_id: 'dummy.anp',
// Metadata for the Clinch Registry discovery engine
display_name: 'Dummy Base Store',
categories: ['general', 'testing'],
capabilities: ['price_flex'],
/**
* Resolves the buyer's requested item into strict constraints.
* @param {string} item_intent - The item the buyer is asking for (e.g., "test-item")
* @returns {Object|null} - The constraints for the AI, or null if out of stock/invalid.
*/
getItemConstraints: (item_intent) => {
// Fallback or generic item logic
return {
id: item_intent || 'generic-item',
list_price: 100.00,
floor_price: 75.00, // The AI engine will never drop below this value
context: `You are a helpful sales assistant for a generic store.
The buyer wants to buy '${item_intent}'.
Be polite, offer a small 5% discount initially, but defend the price carefully.`
};
}
};