Skip to content

fix(types): type response annotation added event#3463

Open
pranjalbhatia710 wants to merge 1 commit into
openai:mainfrom
pranjalbhatia710:fix-response-annotation-event-type
Open

fix(types): type response annotation added event#3463
pranjalbhatia710 wants to merge 1 commit into
openai:mainfrom
pranjalbhatia710:fix-response-annotation-event-type

Conversation

@pranjalbhatia710

Copy link
Copy Markdown

Summary

  • type ResponseOutputTextAnnotationAddedEvent.annotation as the existing Responses Annotation union instead of plain object
  • keep event parsing aligned with ResponseOutputText.annotations, so streamed annotation-added events expose typed citation/file-path models

Fixes #3419.

Test plan

  • git diff --check
  • uv run python - <<'PY' ... PY validating a url_citation annotation parses as AnnotationURLCitation
  • uv run python -m py_compile src/openai/types/responses/response_output_text_annotation_added_event.py

@pranjalbhatia710 pranjalbhatia710 requested a review from a team as a code owner July 1, 2026 22:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ResponseOutputTextAnnotationAddedEvent.annotation typed as object instead of Annotation

1 participant