Home / Function/ test_custom_state_key() — langchain Function Reference

test_custom_state_key() — langchain Function Reference

Architecture documentation for the test_custom_state_key() function in test_file_search.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  e6f2026d_2f45_abf6_1487_4568b1f82f86["test_custom_state_key()"]
  aca37c50_2282_8c0f_dbbe_04f98bf10b0f["TestSearchMiddlewareInitialization"]
  e6f2026d_2f45_abf6_1487_4568b1f82f86 -->|defined in| aca37c50_2282_8c0f_dbbe_04f98bf10b0f
  style e6f2026d_2f45_abf6_1487_4568b1f82f86 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/partners/anthropic/tests/unit_tests/middleware/test_file_search.py lines 18–21

    def test_custom_state_key(self) -> None:
        """Test middleware with custom state key."""
        middleware = StateFileSearchMiddleware(state_key="memory_files")
        assert middleware.state_key == "memory_files"

Domain

Subdomains

Frequently Asked Questions

What does test_custom_state_key() do?
test_custom_state_key() is a function in the langchain codebase, defined in libs/partners/anthropic/tests/unit_tests/middleware/test_file_search.py.
Where is test_custom_state_key() defined?
test_custom_state_key() is defined in libs/partners/anthropic/tests/unit_tests/middleware/test_file_search.py at line 18.

Analyze Your Own Codebase

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

Try Supermodel Free