AI · GraphQL interface

AiThreadEntry interface

Type AiThreadEntry represents an individual message in an AI thread, acting as a base interface for different types of thread entries with common properties like timestamp, author, and message content.

Returned by

  • aiGenerateGraphQLQuery query: Asks the AI assistant to write a Wartiva GraphQL query from a natural-language request, for the object type the thread was created with (see…
  • aiGenerateSearchQuery query: Asks the AI assistant to turn a natural-language request into a graph search query, such as "Windows endpoints with an unencrypted disk", that can…
  • aiQueryObject query: Asks the AI assistant a natural-language question about the specific graph object the thread was created for (see aiThreadCreate with an object id).
  • aiQuerySearch query: Asks the AI assistant a natural-language question that it answers by searching the security graph, for example "which endpoints have not reported in…
  • aiThreadMessage query: Sends a message to an AI chat thread and returns the assistant's reply.

Used by

  • AiThread type: Type AiThread represents a conversation thread between a user and the AI system, containing metadata about the thread's purpose, associated object,…

Example

Example

{
  "timestamp": "2021-10-07T18:23:25.829Z",
  "isFromUser": false,
  "message": "abc123"
}