fdd / train.json
RyanSaleh's picture
Create train.json
41be927 verified
raw
history blame contribute delete
No virus
4.49 kB
[
{
"input": "Get user info for mobile number 1234567890",
"output": {
"id": 1,
"username": "john_doe",
"mobile": "1234567890",
"auth_token": "abcd1234"
}
},
{
"input": "Search items pizza for franchise ID 101",
"output": {
"items": [
{"id": 1, "name": "Margherita Pizza"},
{"id": 2, "name": "Pepperoni Pizza"}
]
}
},
{
"input": "Add items to cart [{'varient': 1, 'quantity': 2}, {'varient': 2, 'quantity': 1}] for user with access token abcd1234",
"output": {
"status": "success",
"message": "Items added to cart"
}
},
{
"input": "Get restaurant details for franchise ID 101 and restaurant ID 202",
"output": {
"id": 202,
"name": "Pizza Place",
"location": "Downtown"
}
},
{
"input": "Clear cart for user with access token abcd1234",
"output": {
"status": "success",
"message": "Cart cleared"
}
},
{
"input": "Apply coupon code SAVE10 for user with access token abcd1234 and franchise ID 101",
"output": {
"status": "success",
"message": "Coupon applied"
}
},
{
"input": "Get charges for user with access token abcd1234",
"output": {
"delivery_charge": 5.0,
"restaurant_charge": 2.5,
"total": 35.0
}
},
{
"input": "Validate cart for user with access token abcd1234",
"output": {
"status": "valid",
"message": "Cart is valid"
}
},
{
"input": "Confirm order for user with access token abcd1234 with payment data {'paymentId': 'pay_1234', 'orderId': 'order_5678', 'method': 'credit_card'}, delivery note 'Leave at the door', all charges included 37.5, tip 2.0, wallet amount used 0, charges {'restaurant_charge': 2.5, 'delivery_charge': 5.0}",
"output": {
"status": "success",
"order_id": "order_5678",
"message": "Order confirmed"
}
},
{
"input": "Fetch franchise details and active status",
"output": {
"franchises": [
{"id": 101, "name": "Franchise A", "active": true},
{"id": 102, "name": "Franchise B", "active": false}
]
}
},
{
"input": "Retrieve category-wise products for restaurant 202 in franchise 101 with limit 10 and offset 0",
"output": {
"categories": [
{
"id": 1,
"name": "Pizzas",
"products": [
{"id": 1, "name": "Margherita Pizza"},
{"id": 2, "name": "Pepperoni Pizza"}
]
},
{
"id": 2,
"name": "Beverages",
"products": [
{"id": 3, "name": "Coke"},
{"id": 4, "name": "Pepsi"}
]
}
]
}
},
{
"input": "Search items burger for franchise ID 102",
"output": {
"items": [
{"id": 3, "name": "Chicken Burger"},
{"id": 4, "name": "Veggie Burger"}
]
}
},
{
"input": "Update memory with 'User John Doe prefers vegetarian food'",
"output": {
"message": "Memory updated successfully.",
"content": "User John Doe prefers vegetarian food",
"status": true
}
},
{
"input": "Retrieve memory content related to 'vegetarian food'",
"output": "User John Doe prefers vegetarian food"
},
{
"input": "Get default address for user with access token abcd1234",
"output": {
"id": 1,
"address": "123 Main St, Springfield",
"city": "Springfield",
"state": "IL",
"zip_code": "62701",
"country": "USA"
}
},
{
"input": "Set address {'land_mark': 'Near the park', 'id': 2} for user with access token abcd1234",
"output": {
"status": "success",
"message": "Address set successfully"
}
},
{
"input": "Fetch coupon codes for user with access token abcd1234 for franchise ID 101",
"output": {
"coupons": [
{"code": "SAVE10", "discount": 10, "expiry": "2024-12-31"},
{"code": "FREESHIP", "discount": 5, "expiry": "2024-11-30"}
]
}
},
{
"input": "Fetch recommended products for franchise ID 101 and restaurant 202",
"output": {
"recommended_products": [
{"id": 1, "name": "Margherita Pizza"},
{"id": 3, "name": "Coke"}
]
}
},
{
"input": "Fetch details of restaurant 202 in franchise ID 101",
"output": {
"id": 202,
"name": "Pizza Place",
"location": "Downtown",
"rating": 4.5
}
}
]