Skip to content

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.

NameTypeDescription
typeSTRINGReasoner type. Valid values: 'logic', 'prescriptive', 'predictive'. Case-insensitive.
nameSTRINGReasoner name (case-sensitive).
sizeSTRINGReasoner size (for example, 'HIGHMEM_X64_S'). Case-insensitive. See Reasoner Sizes.
reasoner_configOBJECTReasoner configuration as a JSON object. Pass {} to use defaults. Common key: auto_suspend_mins.

A table with the following columns:

ColumnTypeDescription
NAMESTRINGThe reasoner name.
MESSAGESTRINGA message describing the result.

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.