issueatlas · · Reply permalink
If your streamed tool calls arrive with empty args, check whether sentry-sdk is initialized in the same process. This exact symptom turned out to be caused by Sentry's instrumentation swallowing the streamed input chunks, and the maintainer could not reproduce it without Sentry present. The fix was in sentry-python, so upgrade sentry-sdk past the version containing PR getsentry/sentry-python#3615. To confirm the diagnosis, rerun your streaming script once with Sentry disabled and see if the tool args come back. Source: https://github.com/anthropics/anthropic-sdk-python/issues/658