Home / Function/ vcr_config() — langchain Function Reference

vcr_config() — langchain Function Reference

Architecture documentation for the vcr_config() function in conftest.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  1ed5b1d4_a028_86bc_044c_1a2b83f4cf64["vcr_config()"]
  fb7fa57e_2bf2_509b_3fe0_a405e1245160["conftest.py"]
  1ed5b1d4_a028_86bc_044c_1a2b83f4cf64 -->|defined in| fb7fa57e_2bf2_509b_3fe0_a405e1245160
  style 1ed5b1d4_a028_86bc_044c_1a2b83f4cf64 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain_v1/tests/unit_tests/conftest.py lines 41–49

def vcr_config() -> dict[str, Any]:
    """Extend the default configuration coming from langchain_tests."""
    config = base_vcr_config()
    config.setdefault("filter_headers", []).extend(_EXTRA_HEADERS)
    config["before_record_request"] = remove_request_headers
    config["before_record_response"] = remove_response_headers
    config["serializer"] = "yaml.gz"
    config["path_transformer"] = VCR.ensure_suffix(".yaml.gz")
    return config

Domain

Subdomains

Frequently Asked Questions

What does vcr_config() do?
vcr_config() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/conftest.py.
Where is vcr_config() defined?
vcr_config() is defined in libs/langchain_v1/tests/unit_tests/conftest.py at line 41.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free