Skip to content

fix: retain tool search and web fetch beta blocks in parsed streams#1449

Open
nightcityblade wants to merge 1 commit intoanthropics:mainfrom
nightcityblade:fix/issue-1422
Open

fix: retain tool search and web fetch beta blocks in parsed streams#1449
nightcityblade wants to merge 1 commit intoanthropics:mainfrom
nightcityblade:fix/issue-1422

Conversation

@nightcityblade
Copy link
Copy Markdown

Fixes #1422

Summary

  • add the missing beta tool-search and web-fetch result block variants to ParsedBetaContentBlock
  • cover both variants with focused construction tests so the parsed streaming union accepts them

Testing

  • python3 -m venv .venv
  • . .venv/bin/activate
  • pip install -q inline_snapshot http_snapshot pytest pytest-xdist pytest_asyncio respx httpx pydantic
  • pytest tests/test_models.py -k parsed_beta_content_block_accepts

@nightcityblade nightcityblade requested a review from a team as a code owner April 26, 2026 03:10
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.

ParsedBetaContentBlock union missing tool_search/web_fetch result blocks — stream accumulator drops them from get_final_message()

1 participant