This PR adds a regression test covering the JSON Schema `$ref` pattern found in MCP-style schemas, where a `$ref` points into a list-based structure such as: #/properties/body/anyOf/1/properties/Message/properties/bccRecipients/items This pattern historically failed due to incorrect handling of numeric list components in `_retrieve_ref`. The underlying bug has since been fixed, and this test ensures coverage so we don't regress on list-index `$ref` resolution. The new test (`test_dereference_refs_list_index_items_ref_mcp_like`) verifies: - correct traversal into `anyOf[1]` - proper dereferencing of `items.$ref` - no errors thrown - `ccRecipients.items` is identical to the resolved schema of `bccRecipients.items` No code changes are included, just the one test — this PR adds coverage to preserve the expected behavior and documents support for this real-world MCP schema pattern. Related to #32012. --------- Co-authored-by: Mason Daugherty <mason@langchain.dev>
Packages
Important
This repository is structured as a monorepo, with various packages located in this libs/ directory. Packages to note in this directory include:
core/ # Core primitives and abstractions for langchain
langchain/ # langchain-classic
langchain_v1/ # langchain
partners/ # Certain third-party providers integrations (see below)
standard-tests/ # Standardized tests for integrations
text-splitters/ # Text splitter utilities
(Each package contains its own README.md file with specific details about that package.)
Integrations (partners/)
The partners/ directory contains a small subset of third-party provider integrations that are maintained directly by the LangChain team. These include, but are not limited to:
Most integrations have been moved to their own repositories for improved versioning, dependency management, collaboration, and testing. This includes packages from popular providers such as Google and AWS. Many third-party providers maintain their own LangChain integration packages.
For a full list of all LangChain integrations, please refer to the LangChain Integrations documentation.