Skip to content

get_reasoner()

relationalai.api
get_reasoner(type STRING, name STRING)

A procedure that retrieves details for a specific RAI reasoner. Requires the eng_user application role.

NameTypeDescription
typeSTRINGReasoner type. Valid values: 'logic', 'prescriptive', 'predictive'. Case-insensitive.
nameSTRINGReasoner name (case-sensitive).

A table with one row per matching reasoner. The table includes the following columns:

ColumnTypeDescription
NAMESTRINGReasoner name.
TYPESTRINGReasoner type.
IDSTRINGReasoner identifier.
VERSIONSTRINGReasoner version.
SIZESTRINGReasoner size (instance family).
STATUSSTRINGCurrent reasoner status. See Reasoner statuses.
CREATED_BYSTRINGCreator identifier.
CREATED_ONTIMESTAMP_LTZCreation time.
UPDATED_ONTIMESTAMP_LTZLast update time.
AUTO_SUSPEND_MINSINTAuto-suspend inactivity window in minutes.
SUSPENDS_ATTIMESTAMP_LTZ or NULLScheduled suspend time (if applicable).
SETTINGSSTRINGSerialized settings payload.
RUNTIMESTRINGRuntime information.
StatusDescription
READYThe reasoner is running and ready to use.
PENDINGThe reasoner is not ready yet. It might be starting, resuming, provisioning an endpoint, or finishing its configuration. Wait and check the status again.
SUSPENDINGThe reasoner is being suspended. Wait until the status changes to SUSPENDED.
SUSPENDEDThe reasoner is suspended. Call api.resume_reasoner_async() to resume it before use.
UPGRADINGThe reasoner is being upgraded. Wait and check the status again before using it.
DELETINGThe reasoner is being deleted. Wait until it no longer appears in api.reasoners.
FAILEDThe reasoner’s service failed. Delete it with api.delete_reasoner(), then recreate it with api.create_reasoner().
GONEThe reasoner’s service no longer exists, but its metadata remains. Delete the stale reasoner with api.delete_reasoner(), then recreate it with api.create_reasoner().

Get details for a logic reasoner named my_reasoner:

CALL relationalai.api.get_reasoner('logic', 'my_reasoner');