Interface: AIADocumentChangesTaggingResponse

NutrientViewer.AIADocumentChangesTaggingResponse

Response from AI tagging service containing categorized change information. This is returned when using NutrientViewer.AIComparisonOperationType.TAG.

Properties:
Name Type Description
references Array.<NutrientViewer.AIADocumentChangeTaggingItem>

Array where each item corresponds to a specific change and includes category tags assigned by the AI service. Each reference contains the change details plus an array of category strings that classify the type of modification (e.g., ["Legal", "Formatting"] for a legal change with formatting updates).

Example

// After running a TAG operation
if (NutrientViewer.isAIDocumentTaggingResult(result)) {
  result.references.forEach((ref, index) => {
    console.log(`Change ${index + 1}: ${ref.text}`);
    console.log(`Categories: ${ref.tag.join(', ')}`);
    console.log(`Page: ${ref.page}`);
  });
}