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

# observed_states

# `prefect.server.schemas.observed_states`

Discovery of state types and exact names in retained run history.

## Classes

### `ObservedStateSort` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/schemas/observed\_states.py#L10](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/schemas/observed_states.py#L10)</sup>

Supported ordering for observed state discovery.

**Methods:**

#### `auto` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/utilities/collections.py#L71](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/utilities/collections.py#L71)</sup>

```python theme={null}
auto() -> str
```

Exposes `enum.auto()` to avoid requiring a second import to use `AutoEnum`

### `ObservedState` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/schemas/observed\_states.py#L17](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/server/schemas/observed_states.py#L17)</sup>

An exact state type/name pair and the bounds of its retained transitions.

**Methods:**

#### `model_validate_list` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/\_internal/schemas/bases.py#L56](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/_internal/schemas/bases.py#L56)</sup>

```python theme={null}
model_validate_list(cls, obj: Any) -> list[Self]
```

#### `reset_fields` <sup>[https://github.com/PrefectHQ/prefect/blob/main/src/prefect/\_internal/schemas/bases.py#L85](https://github.com/PrefectHQ/prefect/blob/main/src/prefect/_internal/schemas/bases.py#L85)</sup>

```python theme={null}
reset_fields(self: Self) -> Self
```

Reset the fields of the model that are in the `_reset_fields` set.

**Returns:**

* A new instance of the model with the reset fields.
