Skip to content

Type Alias: GenieAttachment

GenieAttachment = z.infer<typeof genieAttachmentSchema>

  • attachment_id (optional): Attachment ID
  • query.description (optional): Description of the query
  • query.last_updated_timestamp (optional): Time when the user updated the query last
  • query.query (optional): AI generated SQL query
  • query.query_result_metadata (optional): Metadata associated with the query result.
  • query.query_result_metadata.is_truncated (optional): Indicates whether the result set is truncated.
  • query.query_result_metadata.row_count (optional): The number of rows in the result set.
  • query.statement_id (optional): Statement Execution API statement id. Use Get status, manifest, and result first chunk to get the full result data.
  • query.title (optional): Name of the query
  • suggested_questions (optional): Follow-up questions suggested by Genie
  • suggested_questions.questions (optional): The suggested follow-up questions
  • text.content (optional): AI generated message
  • text.purpose (optional): Forward-compatible semantic purpose for a Genie text attachment.
  • text.metadata (optional): Agent Mode metadata attached to this text response.
  • attachment_type (optional): Forward-compatible Genie attachment discriminator.