Variable: StatusEventSchema
constStatusEventSchema:ZodObject<{conversation_id:ZodOptional<ZodString>;message_id:ZodOptional<ZodString>;previous_status:ZodOptional<ZodUnion<readonly [ZodLiteral<"ASKING_AI">,ZodLiteral<"CANCELLED">,ZodLiteral<"COMPLETED">,ZodLiteral<"EXECUTING_QUERY">,ZodLiteral<"FAILED">,ZodLiteral<"FETCHING_METADATA">,ZodLiteral<"FILTERING_CONTEXT">,ZodLiteral<"PENDING_WAREHOUSE">,ZodLiteral<"QUERY_RESULT_EXPIRED">,ZodLiteral<"SUBMITTED">]>>;space_id:ZodString;status:ZodUnion<readonly [ZodLiteral<"ASKING_AI">,ZodLiteral<"CANCELLED">,ZodLiteral<"COMPLETED">,ZodLiteral<"EXECUTING_QUERY">,ZodLiteral<"FAILED">,ZodLiteral<"FETCHING_METADATA">,ZodLiteral<"FILTERING_CONTEXT">,ZodLiteral<"PENDING_WAREHOUSE">,ZodLiteral<"QUERY_RESULT_EXPIRED">,ZodLiteral<"SUBMITTED">]>;type:ZodLiteral<"status">; },$strip>
Top-level message.status transitioned. Fires for every
distinct status seen on the wire (e.g. SUBMITTED ->
FILTERING_CONTEXT -> ASKING_AI -> PENDING_WAREHOUSE ->
ASKING_AI -> COMPLETED).
StatusEvent fields
Section titled “StatusEvent fields”status: 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.previous_status(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.