AnnotationAddedEvent - Go SDK

AnnotationAddedEvent type definition

The Go SDK and docs are currently in beta. Report issues on GitHub.

Event emitted when a text annotation is added to output

Fields

FieldTypeRequiredDescriptionExample
Annotationcomponents.OpenAIResponsesAnnotation✔️N/A{"file_id": "file-abc123","filename": "research_paper.pdf","index": 0,"type": "file_citation"}
AnnotationIndexint64✔️N/A
ContentIndexint64✔️N/A
ItemIDstring✔️N/A
OutputIndexint64✔️N/A
SequenceNumberint64✔️N/A
Typecomponents.AnnotationAddedEventType✔️N/A