Genie
Create and query Genie spaces and conversations
Genie Cancel Response GA
POST
Cancels an in-flight agent-mode response. response_id is the id returned in the
response.created event from the agent-mode responses endpoint. The response stops at
the next agent boundary and its terminal state is returned.
API scopes: genie
Parameters
- agent_idstringRequiredpath
The ID of the Genie agent (synonymous with the Genie space ID).
- conversation_idstringRequiredpath
The ID of the conversation containing the response.
- response_idstringRequiredpath
The ID of the response to cancel (the id from the
response.createdevent).
Response
- idstring
Message ID. Legacy identifier, use message_id instead
- space_idstringRequired
Genie space ID
- conversation_idstringRequired
Conversation ID
- user_idint64
ID of the user who created the message
- created_timestampint64
Timestamp when the message was created
- last_updated_timestampint64
Timestamp when the message was last updated
- statusstring
MessageStatus. The possible values are:
FETCHING_METADATA: Fetching metadata from the data sources.FILTERING_CONTEXT: Running smart context step to determine relevant context.ASKING_AI: Waiting for the LLM to respond to the user's question.PENDING_WAREHOUSE: Waiting for warehouse before the SQL query can start executing.EXECUTING_QUERY: Executing a generated SQL query. Get the SQL query result by calling getMessageAttachmentQueryResult API.FAILED: The response generation or query execution failed. Seeerrorfield.COMPLETED: Message processing is completed. Results are in theattachmentsfield. Get the SQL query result by calling getMessageAttachmentQueryResult API.SUBMITTED: Message has been submitted.QUERY_RESULT_EXPIRED: SQL result is not available anymore. The user needs to rerun the query. Rerun the SQL query result by calling executeMessageAttachmentQuery API.CANCELLED: Message has been cancelled.
- contentstringRequired
User message content
- attachmentsarray of object
AI-generated response to the message
Show child attributesHide child attributes
- textobject
Text Attachment if Genie responds with text This also contains the final summary when available.
Show child attributesHide child attributes
- contentstring
AI generated message
- idstring
- purposestring
Purpose of this text attachment. A completed message may contain more than one text attachment (for example a clarifying follow-up question alongside the final answer); use this field to tell them apart.
TEXT_ATTACHMENT_PURPOSE_ANSWERmarks the final answer/summary andFOLLOW_UP_QUESTIONmarks a clarifying question.
- queryobject
Query Attachment if Genie responds with a SQL query
Show child attributesHide child attributes
- titlestring
Name of the query
- querystring
AI generated SQL query
- descriptionstring
Description of the query
- last_updated_timestampint64
Time when the user updated the query last
- parametersarray of object
Show child attributesHide child attributes
- keywordstring
- valuestring
- sql_typestring
- idstring
- statement_idstring
Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
- query_result_metadataobject
Metadata associated with the query result.
Show child attributesHide child attributes
- row_countint64
The number of rows in the result set.
- is_truncatedboolean
Indicates whether the result set is truncated.
- thoughtsarray of objectPublic Preview
Insights into how Genie came to generate the SQL.
Show child attributesHide child attributes
- thought_typestringPublic Preview
The category of this thought. The possible values are:
THOUGHT_TYPE_DESCRIPTION: A high-level description of how the question was interpreted.THOUGHT_TYPE_UNDERSTANDING: How ambiguous parts of the question were resolved.THOUGHT_TYPE_DATA_SOURCING: Which tables or datasets were identified as relevant.THOUGHT_TYPE_INSTRUCTIONS: Which author-defined instructions were referenced.THOUGHT_TYPE_STEPS: The logical steps taken to compute the answer.
- contentstringPublic Preview
The md formatted content for this thought.
- suggested_questionsobject
Follow-up questions suggested by Genie
Show child attributesHide child attributes
- questionsarray of string
The suggested follow-up questions
- vizobjectBeta
Visualization generated by Genie, if requested via
enable_visualizationShow child attributesHide child attributes
- titlestringBeta
Name of the visualization
- query_attachment_idstringBeta
The ID of the query attachment the visualization was generated from
- attachment_idstring
Attachment ID
- query_resultobject
The result of SQL query if the message includes a query attachment. Deprecated. Use
query_result_metadatainGenieQueryAttachmentinstead.Show child attributesHide child attributes
- statement_idstring
Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
- row_countint64
Row count of the result
- is_truncatedboolean
If result is truncated
- statement_id_signaturestring
JWT corresponding to the statement contained in this result
- errorobject
Error message if Genie failed to respond to the message
Show child attributesHide child attributes
- errorstring
- typestring
- message_idstringRequired
Message ID
- feedbackobject
User feedback for the message if provided
Show child attributesHide child attributes
- ratingstring
The feedback rating
- commentstringPublic Preview
Optional feedback comment text