langchain-anthropic v1.4.6: Fix file-search results confinement and tighten allowed_prefixes
English summary
The langchain-anthropic package version 1.4.6 has been released. The key change is a fix that confines file-search results and tightens `allowed_prefixes` when using Anthropic's MCP tool. The release also includes broader monorepo updates such as tracing metadata now tracking package versions, type-check configuration bumped to mypy 2.1, and new streaming tests validating tool call chunks.
Chinese summary
langchain-anthropic 1.4.6 版本发布。主要修复了文件搜索结果限制并收紧了 `allowed_prefixes` 在 Anthropic MCP 工具中的使用。该版本还包含了 monorepo 范围的更新,如追踪元数据中加入了包版本追踪、类型检查配置升级至 mypy 2.1,以及新增流式工具调用块验证测试。
Key points
Fixed file-search results to be properly confined and tightened `allowed_prefixes` for Anthropic tools.
修复文件搜索结果被适当限制,并收紧 Anthropic 工具的 `allowed_prefixes`。
Package version tracking added to tracing metadata.
追踪元数据中加入了包版本追踪。
Type-check configuration unified and bumped to mypy 2.1 across the monorepo.
monorepo 范围内统一类型检查配置并升级至 mypy 2.1。
New streaming tests validate tool call chunks during streaming.
新增流式测试以验证流式过程中的工具调用块。