The latest patch release of langchain-anthropic, version 1.5.4, brings important fixes and a small quality-of-life improvement for developers integrating Anthropic models into their LangChain workflows.
Bug Fixes
Two key issues around tool usage have been resolved. First, the package now correctly handles tool schemas that use unsupported top-level composition patterns, preventing errors when feeding complex tool definitions to Anthropic models. Second, the caller’s tool_choice parameter is now properly preserved rather than being inadvertently overwritten by the framework, giving developers full control over how the model selects or forces tool invocations.
New Feature
A new user_profile_id convenience attribute has been added, making it simpler to identify and track usage across different user profiles when interacting with Anthropic’s API. This is particularly useful for multi-user applications that need to segment or monitor model calls.
Internally, several minor and patch dependencies have been updated across three directories, ensuring better compatibility and stability without any direct impact on the public API.



