ReasonersConfig
Configure defaults for the reasoners API.
This section lives under reasoners in raiconfig.yaml and controls the
reasoners backend, polling behavior for long-running operations, and default
settings for each reasoner type (logic, predictive, prescriptive).
Examples
Section titled “Examples”Minimal YAML (in raiconfig.yaml):
default_connection: sfconnections: sf: type: snowflake # ...reasoners: direct_access: true poll_max_delay_s: 2.0 logic: size: HIGHMEM_X64_S query_timeout_mins: 30Configure reasoners settings using a dict:
>>> from relationalai.config import create_config>>> cfg = create_config(reasoners={... "poll_max_delay_s": 2.0,... "logic": {"size": "HIGHMEM_X64_S", "query_timeout_mins": 30},... })Configure reasoners settings using an explicit ReasonersConfig instance:
>>> from relationalai.config import create_config, ReasonersConfig, LogicReasonerConfig>>> cfg = create_config(... reasoners=ReasonersConfig(... poll_max_delay_s=2.0,... logic=LogicReasonerConfig(size="HIGHMEM_X64_S", query_timeout_mins=30),... ),... )Attributes
Section titled “Attributes”.backend
Section titled “.backend”ReasonersConfig.backend: {'sql', 'direct_access'}Backend used for reasoners APIs.
.show_all_sizes
Section titled “.show_all_sizes”ReasonersConfig.show_all_sizes: boolShow all available reasoner sizes (includes internal/dev sizes).
.poll_initial_delay_s
Section titled “.poll_initial_delay_s”ReasonersConfig.poll_initial_delay_s: floatInitial delay between polls when waiting for operations to complete.
.poll_overhead_rate
Section titled “.poll_overhead_rate”ReasonersConfig.poll_overhead_rate: floatExponential backoff growth rate per poll (for example, 0.2 means +20% per poll).
.poll_max_delay_s
Section titled “.poll_max_delay_s”ReasonersConfig.poll_max_delay_s: floatMaximum poll delay.
.logic
Section titled “.logic”ReasonersConfig.logic: LogicReasonerConfigDefaults for the logic reasoner.
.predictive
Section titled “.predictive”ReasonersConfig.predictive: ReasonerConfigDefaults for the predictive reasoner.
.prescriptive
Section titled “.prescriptive”ReasonersConfig.prescriptive: ReasonerConfigDefaults for the prescriptive reasoner.
Inheritance Hierarchy
Section titled “Inheritance Hierarchy”Referenced By
Section titled “Referenced By”RelationalAI Documentation └── Build With RelationalAI └── Understand how PyRel works > Configure PyRel └── Configure reasoners ├── Choose a reasoner backend (SQL vs Direct Access) └── Configure reasoner polling behavior