Skip to content

reasoners

relationalai.api
reasoners

A view that lists all existing RAI reasoners. Requires the eng_user application role.

ColumnTypeDescription
NAMESTRINGReasoner name.
TYPESTRINGReasoner type.
IDSTRINGReasoner identifier.
SIZESTRINGReasoner size (instance family).
STATUSSTRINGCurrent reasoner status. See Reasoner statuses.
CREATED_BYSTRINGCreator identifier.
CREATED_ONTIMESTAMP_LTZCreation time.
UPDATED_ONTIMESTAMP_LTZLast update time.
VERSIONSTRINGReasoner version.
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().

List all reasoners:

SELECT * FROM relationalai.api.reasoners;

Filter for idle reasoners (ready and scheduled to suspend):

SELECT *
FROM relationalai.api.reasoners
WHERE status = 'READY' AND suspends_at IS NOT NULL;

See Manage reasoners for more usage patterns.