Skip to content

fix(streaming): emit beta input_json for server tools#1429

Open
MukundaKatta wants to merge 4 commits intoanthropics:mainfrom
MukundaKatta:codex/server-tool-input-json-events
Open

fix(streaming): emit beta input_json for server tools#1429
MukundaKatta wants to merge 4 commits intoanthropics:mainfrom
MukundaKatta:codex/server-tool-input-json-events

Conversation

@MukundaKatta
Copy link
Copy Markdown

Summary

  • emit BetaInputJsonEvent for server_tool_use blocks in beta streaming helpers
  • add a focused regression test covering the parsed event path for server-side tools

Testing

  • PYTHONPATH=src PYTHONPYCACHEPREFIX=/tmp/anthropic-sdk-python-pyc python3 -m py_compile src/anthropic/lib/streaming/_beta_messages.py tests/lib/streaming/test_partial_json.py
  • PYTHONPATH=src python3 direct smoke check for build_events() on a server_tool_use block
  • PYTHONPATH=src python3 -m pytest tests/lib/streaming/test_partial_json.py -k server_tool_use_emits_input_json_event (fails locally: missing inline_snapshot in tests/conftest.py)

@MukundaKatta MukundaKatta requested a review from a team as a code owner April 21, 2026 15:18
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.

1 participant