create_reasoner()
relationalai.api
create_reasoner(type STRING, name STRING, size STRING, reasoner_config OBJECT)A procedure that creates a new RelationalAI (RAI) reasoner of the specified type and size.
Requires the eng_admin application role.
Parameters
Section titled “Parameters”| Name | Type | Description |
|---|---|---|
type | STRING | Reasoner type. Valid values: 'logic', 'prescriptive', 'predictive'. Case-insensitive. |
name | STRING | Reasoner name (case-sensitive). |
size | STRING | Reasoner size (for example, 'HIGHMEM_X64_S'). Case-insensitive. See Reasoner Sizes. |
reasoner_config | OBJECT | Reasoner configuration as a JSON object. Pass {} to use defaults. Common key: auto_suspend_mins. |
Returns
Section titled “Returns”A table with the following columns:
| Column | Type | Description |
|---|---|---|
NAME | STRING | The reasoner name. |
MESSAGE | STRING | A message describing the result. |
Example
Section titled “Example”Create a logic reasoner named my_reasoner that auto-suspends after 60 minutes of inactivity:
CALL relationalai.api.create_reasoner( 'logic', 'my_reasoner', 'HIGHMEM_X64_S', {'auto_suspend_mins': 60});See Compute Resources for more details on reasoners, sizes, and auto-suspension.