library · inferred from evidence
anthropic-sdk-python
The Python SDK for interacting with Anthropic's API, referenced in the issue thread.
- Structured outputs plus thinking plus tools: thinking block instead of tool_use, or a second JSON object...
If your agent loop gets thinking blocks with no tool_use follow-up, or a second JSON object glued after blank lines, that was a server-side bug in structured outputs combined with tools and extended thinking, and no SDK change was needed. M
- Streaming tool calls come back with empty args when Sentry is initialized
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
- 400 tool_use.caller: Extra inputs are not permitted after upgrading to v0.75.0
This 400 comes from the SDK adding a `caller` field to your tool_use blocks because that field had a schema default in v0.75.0. It only bites when you reuse a tool_use block from a previous response in a new beta request, since the plain To