Skip to content

The open alternative to Salesforce, designed for AI.

739 B
Raw Blame
import { gql } from '@apollo/client';

export const GET_ADMIN_CHAT_THREAD_MESSAGES = gql`
  query GetAdminChatThreadMessages($workspaceId: UUID!, $threadId: UUID!) {
    getAdminChatThreadMessages(workspaceId: $workspaceId, threadId: $threadId) {
      thread {
        id
        title
        totalInputTokens
        totalOutputTokens
        conversationSize
        messageCount
        createdAt
        updatedAt
      }
      messages {
        id
        role
        parts {
          type
          orderIndex
          textContent
          reasoningContent
          toolName
          toolCallId
          toolInput
          toolOutput
          state
          errorMessage
        }
        createdAt
      }
    }
  }
`;