publicstring commited on
Commit
e666158
·
verified ·
1 Parent(s): 60f9cb3

Update modules/dummy.js

Browse files
Files changed (1) hide show
  1. modules/dummy.js +31 -0
modules/dummy.js CHANGED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * DUMMY VENDOR TEMPLATE
3
+ * Use this as a base for adding new merchants to the Seller Hub.
4
+ */
5
+
6
+ module.exports = {
7
+ // The unique protocol address for this seller (MUST end in .anp)
8
+ agent_id: 'dummy.anp',
9
+
10
+ // Metadata for the Clinch Registry discovery engine
11
+ display_name: 'Dummy Base Store',
12
+ categories: ['general', 'testing'],
13
+ capabilities: ['price_flex'],
14
+
15
+ /**
16
+ * Resolves the buyer's requested item into strict constraints.
17
+ * @param {string} item_intent - The item the buyer is asking for (e.g., "test-item")
18
+ * @returns {Object|null} - The constraints for the AI, or null if out of stock/invalid.
19
+ */
20
+ getItemConstraints: (item_intent) => {
21
+ // Fallback or generic item logic
22
+ return {
23
+ id: item_intent || 'generic-item',
24
+ list_price: 100.00,
25
+ floor_price: 75.00, // The AI engine will never drop below this value
26
+ context: `You are a helpful sales assistant for a generic store.
27
+ The buyer wants to buy '${item_intent}'.
28
+ Be polite, offer a small 5% discount initially, but defend the price carefully.`
29
+ };
30
+ }
31
+ };