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: backend: direct_access direct_access_base_url: https://reasoners.example.com poll_max_delay_s: 2.0 logic: size: HIGHMEM_X64_S auto_suspend_mins: 60Configure reasoners settings using a dict:
>>> from relationalai.config import Config>>> cfg = Config(reasoners={... "backend": "direct_access",... "direct_access_base_url": "https://reasoners.example.com",... "poll_max_delay_s": 2.0,... "logic": {"size": "HIGHMEM_X64_S", "auto_suspend_mins": 60},... })Attributes
Section titled “Attributes”.backend
Section titled “.backend”ReasonersConfig.backend: {'sql', 'direct_access'}Backend used for reasoners APIs.
.direct_access_base_url
Section titled “.direct_access_base_url”ReasonersConfig.direct_access_base_url: (str, optional)Direct Access service base URL (required when backend="direct_access").
.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