Skip to content

fix: discriminate tool search result block content#1437

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

fix: discriminate tool search result block content#1437
nightcityblade wants to merge 1 commit intoanthropics:mainfrom
nightcityblade:fix/issue-1394

Conversation

@nightcityblade
Copy link
Copy Markdown

Fixes #1394

Summary

  • add discriminators for ToolSearchToolResultBlock.content in stable and beta models
  • ensure parsed tool-search content is typed instead of left as a raw dict
  • add model validation tests for both variants

Testing

  • python -m pytest tests/test_models.py -q -n0

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

ToolSearchToolResultBlock is raw dict

1 participant