Skip to main content
Below, we describe two core methods of the ReasoningModel object, drivers and scenarios.

Drivers

Every inference from a ReasoningModel is enriched with the drivers behind the output. These drivers are available in a Reasoning object.
The Reasoning object contains:

Scenarios

A ReasoningModel provides verifiable reasoning via scenarios. Scenarios are minimal interventions on input data that change model outputs to a specific target value. As a result, scenarios provide verifiable reasoning for models. model.scenario() is available on any ReasoningModel and returns a structured ScenarioResult containing one QueryResult per input row, each with the candidate scenarios. The required target_value is the score the search drives each prediction toward — in label units for regression, or the positive-class probability in (0, 1) for binary classification (e.g. 0.5 flips a row to the other side of the decision boundary).

Sourcing scenarios

The number of scenarios is determined by the reasoning effort. Control the effort with n_trials and max_steps: