Type Alias: GenieMessage
GenieMessage =
z.infer<typeofGenieMessageSchema>
Genie message snapshot widened with typed attachments and regeneration count.
GenieMessage fields
Section titled “GenieMessage fields”content: User message contentconversation_id: Conversation IDcreated_timestamp(optional): Timestamp when the message was createderror(optional): Error message if Genie failed to respond to the messagefeedback(optional): User feedback for the message if providedfeedback.rating(optional): The feedback ratingid: Message ID. Legacy identifier, use message_id insteadlast_updated_timestamp(optional): Timestamp when the message was last updatedmessage_id: Message IDquery_result(optional): The result of SQL query if the message includes a query attachment. Deprecated. Usequery_result_metadatainGenieQueryAttachmentinstead.query_result.is_truncated(optional): If result is truncatedquery_result.row_count(optional): Row count of the resultquery_result.statement_id(optional): Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.query_result.statement_id_signature(optional): JWT corresponding to the statement contained in this resultspace_id: Genie space IDstatus(optional): 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.user_id(optional): ID of the user who created the message