analyst_messages
Creates, updates, deletes, gets or lists an analyst_messages resource.
Overview
| Name | analyst_messages |
| Type | Resource |
| Id | snowflake.cortex.analyst_messages |
Fields
The following fields are returned by SELECT queries:
- send_message
| Name | Datatype | Description |
|---|---|---|
request_id | string | Unique request ID |
message | object | Represents a message within a chat. (title: The message object) |
response_metadata | object | |
semantic_model_selection | object | |
warnings | array |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
send_message | select | endpoint | Send a data question to the Cortex Analyst |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
endpoint | string | Organization and account identifier (orgname-accountname) (default: orgname-accountname) |
SELECT examples
- send_message
Send a data question to the Cortex Analyst
SELECT
request_id,
message,
response_metadata,
semantic_model_selection,
warnings
FROM snowflake.cortex.analyst_messages
WHERE endpoint = '{{ endpoint }}' -- required
;