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

# RunStateFilter

[View source](https://github.com/wandb/wandb/blob/main/wandb/automations/events.py#L166)

## クラス wandb.automations.RunStateFilter

run の状態の変化に基づくイベントをトリガーするためのフィルターを表します。

```python theme={"system"}
*,
run_filter: Annotated[wandb._filters.operators.And | wandb._filters.operators.Or | wandb._filters.operators.Nor | wandb._filters.operators.Not | wandb._filters.operators.Lt | wandb._filters.operators.Gt | wandb._filters.operators.Lte | wandb._filters.operators.Gte | wandb._filters.operators.Eq | wandb._filters.operators.Ne | wandb._filters.operators.In | wandb._filters.operators.NotIn | wandb._filters.operators.Exists | wandb._filters.operators.Regex | wandb._filters.operators.Contains | wandb._filters.operators.Size | wandb._filters.operators.All | wandb._filters.expressions.FilterExpr | dict[str, Any], Json, BeforeValidator(func=<function ensure_json>, json_schema_input_type=PydanticUndefined), PlainSerializer(func=<function to_json>, return_type=PydanticUndefined, when_used='always'), AfterValidator(func=<function wrap_run_filter>)] = And(()),
run_state_filter: wandb.automations._run_state_filters.StateFilter
```

## 引数

**run\_filter** `Annotated`

このイベントをトリガーする run に一致する必要があるフィルター。

**run\_state\_filter** `StateFilter`

このイベントをトリガーするために満たす必要がある run の状態条件。
