File size: 653 Bytes
9d521d5
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
{
  "state": "Policy: a refund requires both a receipt and a purchase within 30 days. The customer purchased 12 days ago and has no receipt.",
  "questions": {
    "refund_allowed": {"type":"noul","instructions":"Under the policy, is a refund allowed?"},
    "next_action": {"type":"choice","instructions":"Which action follows the policy?","criteria":{"approve":"Approve the refund now.","request_receipt":"Ask for the missing receipt before approving."}},
    "completeness": {"type":"score","instructions":"How many of the two required conditions are established?","criteria":["Neither condition.","Exactly one condition.","Both conditions."]}
  }
}