-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtier2-ecommerce.json
More file actions
48 lines (48 loc) · 2.12 KB
/
tier2-ecommerce.json
File metadata and controls
48 lines (48 loc) · 2.12 KB
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
39
40
41
42
43
44
45
46
47
48
{
"version": "1.0",
"origin": "shop.example.com",
"payout_address": "0x0000000000000000000000000000000000000000",
"display_name": "Example Shop",
"description": "Online marketplace for electronics, home goods, and clothing with same-day delivery.",
"intents": [
{
"name": "search_products",
"description": "Search the product catalog by keyword, category, or brand. Returns product name, price, rating, stock status, and estimated delivery date. Supports filtering by price range and minimum rating.",
"parameters": {
"query": { "type": "string", "required": true, "description": "Search keywords" },
"category": { "type": "string", "required": false, "enum": ["electronics", "home", "clothing"] },
"max_price": { "type": "number", "required": false, "description": "Maximum price in USD" },
"min_rating": { "type": "number", "required": false, "description": "Minimum star rating (1-5)" },
"sort_by": { "type": "string", "required": false, "enum": ["relevance", "price_low", "price_high", "rating"] }
}
},
{
"name": "get_product_details",
"description": "Get full details for a specific product including description, specifications, customer reviews, pricing history, and related products.",
"parameters": {
"product_id": { "type": "string", "required": true, "description": "Product identifier" }
}
},
{
"name": "add_to_cart",
"description": "Add a product to the user's shopping cart. Returns updated cart contents and total.",
"parameters": {
"product_id": { "type": "string", "required": true },
"quantity": { "type": "integer", "required": false, "default": 1 }
}
},
{
"name": "complete_purchase",
"description": "Finalize the purchase of all items in the cart. Returns order confirmation number and estimated delivery date.",
"parameters": {
"cart_id": { "type": "string", "required": true }
},
"bounty": { "type": "cpa", "rate": 15.00, "currency": "USDC" }
}
],
"bounty": {
"type": "cpa",
"rate": 1.00,
"currency": "USDC"
}
}