Patch Changes
-
#11707
4109812Thanks @richardscarrott! - feat(anthropic): support mid-conversation tool changes. ASystemMessagecan now carry Anthropic'stool_additionandtool_removalblocks, either bare incontentor wrapped in anon_standardblock, and they reach the provider verbatim. The required beta is added automatically:mid-conversation-tool-changes-2026-07-01for tools named by reference, orinline-tools-2026-09-15when atool_additiondefines a tool by value (tool: { type: "tool_definition", definition }).System content is now narrowed to what Anthropic accepts there.
text,tool_additionandtool_removalare sent; any other block is dropped instead of being forwarded for the provider to reject. A system message left with no content is omitted.