{
"refinedPrompt": "Extract all product listings with their name, price, currency, stock status, rating, and review excerpts from the e-commerce site",
"schema": {
"$defs": {
"ItemSchema": {
"title": "ItemSchema",
"type": "object",
"properties": {
"name": { "title": "Name", "description": "Name of the product", "type": "string" },
"price": { "title": "Price", "description": "Price of the product as a number", "type": "number" },
"currency": { "title": "Currency", "description": "Currency code for the price (e.g., USD, EUR)", "type": "string" },
"in_stock": { "title": "In Stock", "description": "Whether the product is currently in stock", "type": "boolean" },
"rating": { "title": "Rating", "description": "Product rating on a scale from 0 to 5", "type": "number", "minimum": 0, "maximum": 5 },
"review_excerpts": { "title": "Review Excerpts", "description": "List of short review excerpts for the product", "type": "array", "items": { "type": "string" } }
},
"required": ["name", "price", "currency", "in_stock", "rating", "review_excerpts"]
}
},
"title": "MainSchema",
"type": "object",
"properties": {
"items": {
"title": "Items",
"description": "Array of product listings",
"type": "array",
"items": { "$ref": "#/$defs/ItemSchema" }
}
},
"required": ["items"]
},
"usage": { "promptTokens": 1160, "completionTokens": 743 }
}