<?php
require 'examples/boot.php';
use Cognesy\Polyglot\Decision\Decision;
$response = Decision::using('classifier-dev')
->with(input: 'Refund the duplicate charge today.', questions: $questions)
->response();
// Evaluate typed probabilities and values against independently labeled cases.
$refundProbability = $response->answers()->noul('refund_requested')->probability();
$department = $response->answers()->choice('department')->value();
$urgency = $response->answers()->score('urgency')->value();
?>