Spaces:
Sleeping
Sleeping
Download modules/dummy.js from publicstring/sellersnode: direct link, hf CLI and curl.
- Browser
- Download file 1.14 kB
-
https://huggingface.co/spaces/publicstring/sellersnode/resolve/aecb6e8d647973b56518f8d6e367c3dfffccb4cd/modules/dummy.js
- Command line
-
hf download hf://spaces/publicstring/sellersnode@aecb6e8d647973b56518f8d6e367c3dfffccb4cd/modules/dummy.js
-
curl -L -o dummy.js https://huggingface.co/spaces/publicstring/sellersnode/resolve/aecb6e8d647973b56518f8d6e367c3dfffccb4cd/modules/dummy.js
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.` | |
| }; | |
| } | |
| }; |