Base response item from AI services representing a single document change. Contains the essential information about a text modification detected during comparison.
Properties:
Name | Type | Attributes | Description |
---|---|---|---|
id |
string | Unique identifier for this change, used for tracking and correlation |
|
type |
string | Type of change operation (e.g., "insertion", "deletion", "modification") |
|
text |
string | The actual text content that was changed |
|
page |
number | Zero-based page number where this change occurred |
|
contextBefore |
string |
<nullable> |
Text content appearing before the change for context. |
contextAfter |
string |
<nullable> |
Text content appearing after the change for context. |
Example
// Typical structure of a change item
{
id: "change-456",
type: "deletion",
text: "old contract terms",
page: 1,
contextBefore: "The following ",
contextAfter: " are no longer valid"
}