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

# Inspect value learner state

> Inspect value configuration, sample counts, dataset identities, candidates, installed models, and training diagnostics while monitoring a workflow.

Inspect Adapt-1 value state with `session_id`. Recorded responses expose configuration, sample and dataset identities, installed model, candidate, training state, and the frozen flag. Use `training.status` to monitor a fit; top-level status can remain `configured` while training is running. The [training guide](https://docs.reilabs.org/docs/neuroadapt/value-training.md) explains report fields.

The request tables below describe schema version 5. A default marked "Not declared" is absent from that schema; it does not mean `null`. Check `/version` at the API host root and confirm compatibility with your deployment.

## Path, headers, and query

Send the hosted API key as `Authorization: Bearer <ADAPT1_API_KEY>`. The authenticated identity determines ownership; follow [HTTP and contracts](https://docs.reilabs.org/docs/neuroadapt/request-contracts.md) for the session placeholder.

| Parameter | Location | Required | Type | Constraints |
| - | - | - | - | - |
| `domain_id` | path | Yes | `string` | No further constraint declared |
| `X-Neuroadapt-Session-Id` | header | No | `string` or `null` | No further constraint declared |

`X-Neuroadapt-Session-Id` is a compatibility header in schema version 5. It does not replace the hosted bearer identity.

## JSON body contract

Content type: `application/json`. The HTTP request body is required. The following table describes its fields; linked schema names lead to the complete nested definitions on this page. When an array type also permits `null`, that alternative applies to the entire field, not to individual array items.

## Request body

Schema: `ValueRequest`.

Fields outside this object's declared properties are rejected by the schema.

| Field | Required | Type | Declared default | Constraints |
| - | - | - | - | - |
| `session_id` | Yes | `string` | Not declared | At least 1 character |

## Responses

| HTTP status | Schema-defined contract |
| - | - |
| 200 | Successful JSON response. The schema does not type its properties. |
| 422 | Request validation error; the schema references `HTTPValidationError`. |

The validation error shape has an optional `detail` array. Each validation entry requires `loc` (an array of strings or integers), `msg` (string), and `type` (string); it can also include `ctx` (object) and `input` (any JSON value). Operational refusals can have their own error details.

Recorded state reports include `sample_count`, dataset identities, configuration, model and candidate summaries, `training`, and `frozen`. Preserve the observation rows in your application record alongside these counts and dataset identities.

## Monitor a training request

Keep the state returned before submission with your training request journal, then follow the [polling procedure](https://docs.reilabs.org/docs/neuroadapt/value-training.md#poll-until-the-fit-finishes) for the intended fit. Handle the following training statuses:

| `training.status` | Client action |
| - | - |
| `queued` | Treat this as pending; continue polling for the matching request. |
| `running` | Continue polling within your application's wait budget. |
| `candidate` | The fit finished with a candidate for evaluation. Inspect the candidate summary and use `model_source: candidate` when predicting with it. |
| `trained` | The fit finished. Inspect `training.installed` and `model.model_sha256` before treating it as the serving model. |
| `rejected` | Stop waiting for that fit to succeed, preserve `training.reason` and the report, and inspect which model remains installed. |

This table covers reported training statuses. Resolve any additional status against your deployment's contract before recording completion. Match `training.request_id` to the submitted request, then use that fit's status, installation flag, and installed model identity to confirm its result.

Bind prediction to the model you intend to evaluate with `expected_model_sha256`. Use the [training-state guide](https://docs.reilabs.org/docs/neuroadapt/value-training.md#inspect-training-state) for field interpretation and refusal diagnostics. A client deadline ends the client's wait; [reconcile state](https://docs.reilabs.org/docs/neuroadapt/value-training.md#recover-from-a-long-or-interrupted-fit) before another training write.

## Match a result to your request and model

| Field | Use |
| - | - |
| `training.request_id` | Check that the reported job is the request you submitted |
| `training.status` | Distinguish a running fit, a staged candidate, a completed fit, and a rejection |
| `training.installed` | Check whether the reported fit installed a model |
| `model.model_sha256` | Bind `model_source: installed` predictions to the serving model |
| `candidate.model_sha256` | Bind `model_source: candidate` predictions to a staged candidate, when one exists |
| `training.report.validation_skill` | Inspect the fit's reported validation skill |
| `training.report.validation_checks.prediction_span` | Inspect the prediction spread reported for that fit |

These nested fields describe observed response shapes. Keep the complete state response when a deployment returns a different shape. Complete a wait from the matching job's status and use the candidate's own hash for candidate evaluation. See the [complete workflow client](https://docs.reilabs.org/docs/neuroadapt/value-client-workflow.md) and [prediction response checks](https://docs.reilabs.org/docs/neuroadapt/value-api/predict.md#read-the-prediction-response).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.