Files
Douwe Osinga 71b3caa663 fix: send empty object instead of null for anthropic tool input
When an MCP tool has no parameters, tool_call.arguments is None, which
serialized to JSON null. The Anthropic API rejects null for the input
field, requiring an empty object {} instead.

This is the same fix applied to Bedrock in #8121 but was missing from
the Anthropic provider.

Fixes #9287

Signed-off-by: Douwe Osinga <douwe@squareup.com>
2026-05-19 10:12:36 -04:00
..