extract(instruction: "Extract the product name and price", schema: { type: "object", properties: { name: { type: "string" }, price: { type: "number" } } })
Returns the extracted data as a JSON object.
instruction
"Get the user's name and email from the profile page."
schema
{ "type": "object", "properties": { "productName": { "type": "string" }, "price": { "type": "number" } } }
options
JSON
scalar type represents JSON values as specified by ECMA-404.