Skip to content

Conversation

@weedon-openai
Copy link
Contributor

  • Updated agents.stream_agent_response to add annotation parts as they are received rather than adding all the annotations at the end after the response is completed.
  • Added support for rendering container_file_citation
  • Bumped minor version

Test Plan

  • I wrote automated tests
  • Manually verified

Comment on lines +229 to +232
# resulting into annotation being a dict or untyped object instead instead of a ResponsesAnnotation
annotation = TypeAdapter[ResponsesAnnotation](ResponsesAnnotation).validate_python(
raw_annotation
)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: should we put this in a defensive try except since the validator can throw?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I considered that, but decided maybe an exception is best here.

  1. It didn't have a try before this change
  2. This is only operating on objects we got from the responses API so it's a pretty serious contract breakage for this validator not to pass.

@weedon-openai weedon-openai added this pull request to the merge queue Nov 13, 2025
Merged via the queue into main with commit e4093be Nov 13, 2025
1 check passed
@weedon-openai weedon-openai mentioned this pull request Nov 13, 2025
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.

3 participants