Convert a DocumentAnnotation to the API format
Annotator Kind
The kind of annotator used for the annotation
Document Position
A 0 based index of the document. E.x. the first document during retrieval is 0
Optional
Identifier
The identifier of the annotation. If provided, the annotation will be updated if it already exists.
Copy
Metadata
Metadata for the annotation
Name
The name of the annotation
The result of the annotation
Span Id
OpenTelemetry Span ID (hex format w/o 0x prefix)
Convert a DocumentAnnotation to the API format