Commits
Click on a commit to change the comparison rangefix(anthropic): handle pre-completed content blocks in message_start events
When using programmatic tool calling (e.g., code_execution_20250825),
Anthropic's API returns pre-completed tool_use blocks directly in the
message_start event instead of streaming them incrementally. This caused
empty AIMessage responses when using astream().
This fix modifies _make_message_chunk_from_anthropic_event() to check for
and process pre-completed content blocks in message_start events, ensuring
tool_use blocks are properly extracted into tool_call_chunks.
Closes #34406 fix: resolve lint and type check errors in tests Merge branch 'master' into fix-anthropic-empty-aimessage-streaming Merge branch 'master' into fix-anthropic-empty-aimessage-streaming19 hours ago
by majiayu000