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, seeLogicReasonerConfigfor additional logic-specific settings)reasoners.predictive(predictive reasoner)reasoners.prescriptive(prescriptive reasoner)
Examples
Section titled “Examples”Minimal YAML (in raiconfig.yaml) configuring only the logic reasoner:
default_connection: sfconnections: sf: type: snowflake # ...reasoners: logic: size: HIGHMEM_X64_S auto_suspend_mins: 60Any omitted subsections (for example reasoners.predictive) keep their
built-in defaults.
Configure reasoner defaults in code:
>>> from relationalai.config import Config>>> cfg = Config(reasoners={... "logic": {... "size": "HIGHMEM_X64_S",... "auto_suspend_mins": 60,... }... })Attributes
Section titled “Attributes”ReasonerConfig.name: (str, optional)Optional name for the reasoner instance.
ReasonerConfig.size: strCompute size (for example, "HIGHMEM_X64_S").
See config.config_reasoners_fields.EngineSize for valid size values.
.query_timeout_mins
Section titled “.query_timeout_mins”ReasonerConfig.query_timeout_mins: (int, optional)Abort queries that exceed this duration.
.auto_suspend_mins
Section titled “.auto_suspend_mins”ReasonerConfig.auto_suspend_mins: intAuto-suspend the reasoner after N minutes of inactivity.
.settings
Section titled “.settings”ReasonerConfig.settings: (dict, optional)Backend-specific settings payload.
Inheritance Hierarchy
Section titled “Inheritance Hierarchy”Subclassed By
Section titled “Subclassed By”config > config_reasoners_fields ├── LogicReasonerConfig └── PrescriptiveReasonerConfig