> ## Documentation Index
> Fetch the complete documentation index at: https://docs.instructorphp.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Decision provider evaluation

## Overview

Run one explicit Decision provider against a small, versioned support-triage
corpus. The JSON report keeps native and projected semantics visible and reports
quality, calibration, latency, failures, retries, and an illustrative human
review policy separately.

The corpus demonstrates the mechanics. Replace it with representative,
independently labeled application data before making a production decision.

Execute the evaluator with a bundled preset name:

```bash theme={null}
php examples/B06_Decisions/ProviderEvaluation/evaluate.php classifier-dev
```

## Example

```php theme={null}
<?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();
?>
```
