# ReasonerConfig

relationalai.config.config\_reasoners\_fields

Common configuration fields for a reasoner.

This model defines the fields shared by all reasoner types. You set these
fields under one of the reasoner subsections in `raiconfig.yaml`:

- `reasoners.logic` (logic reasoner, see
  [`LogicReasonerConfig`](/api/python/v2.1/config/config_reasoners_fields/logicreasonerconfig_class/index.md)
  for additional logic-specific settings)
- `reasoners.predictive` (predictive reasoner)
- `reasoners.prescriptive` (prescriptive reasoner)

This model covers config-managed defaults only.
Lifecycle settings such as `auto_suspend_mins` and
`await_storage_vacuum` are no longer supported in config and are ignored
with a warning.

## Examples

Minimal YAML (in `raiconfig.yaml`) configuring only the logic reasoner:

```yaml
default_connection: sf
connections:
    sf:
        type: snowflake
        # ...
reasoners:
    logic:
        size: HIGHMEM_X64_S
        query_timeout_mins: 30
```

Any omitted subsections (for example `reasoners.predictive`) keep their
built-in defaults.

Configure reasoner defaults using a dict:

```python
from relationalai.config import create_config

cfg = create_config(
    reasoners={
        "logic": {
            "size": "HIGHMEM_X64_S",
            "query_timeout_mins": 30,
        }
    }
)
```

Configure reasoner defaults using an explicit ReasonerConfig instance:

```python
from relationalai.config import create_config, ReasonerConfig

cfg = create_config(
    reasoners={
        "predictive": ReasonerConfig(size="HIGHMEM_X64_S", query_timeout_mins=30)
    },
)
```

## Attributes

### .`name`

```python
ReasonerConfig.name: (str, optional)
```

Optional name for the reasoner instance.

### .`size`

```python
ReasonerConfig.size: str
```

Compute size (for example, `"HIGHMEM_X64_S"`).
See [`config.config_reasoners_fields.EngineSize`](/api/python/v2.1/config/config_reasoners_fields/enginesize/index.md) for valid size values.

### .`query_timeout_mins`

```python
ReasonerConfig.query_timeout_mins: (int, optional)
```

Abort queries that exceed this duration.

### .`settings`

```python
ReasonerConfig.settings: (dict, optional)
```

Backend-specific settings payload.

## Inheritance Hierarchy

```d2 inline layout=dagre theme=0 darkTheme=false pad=8 title="Inheritance hierarchy"
direction: down
"relationalai.config.config_reasoners_fields.ReasonerConfig": {
  label: "ReasonerConfig"
  link: "/api/python/v2.1/config/config_reasoners_fields/reasonerconfig_class"
}
"pydantic.BaseModel": {
  label: "pydantic.BaseModel"
}
"pydantic.BaseModel" -> "relationalai.config.config_reasoners_fields.ReasonerConfig"
```

## Subclassed By

1. [config](/api/python/v2.1/config/index.md) / [config\_reasoners\_fields](/api/python/v2.1/config/config_reasoners_fields/index.md)1) [LogicReasonerConfig](/api/python/v2.1/config/config_reasoners_fields/logicreasonerconfig_class/index.md)

## Referenced By

1. [RelationalAI Documentation](/index.md)1) [Deploy](/deploy/index.md)1. [Configure deployment](/deploy/configure-deployment/index.md)
