Home / Function/ test_message_response_metadata_with_lc_key_escaped() — langchain Function Reference

test_message_response_metadata_with_lc_key_escaped() — langchain Function Reference

Architecture documentation for the test_message_response_metadata_with_lc_key_escaped() function in test_serializable.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  0c8ada6b_73c0_f100_2a54_885321287488["test_message_response_metadata_with_lc_key_escaped()"]
  c4a8d7fe_9c7d_27a9_b1d5_4a21a8860b2e["TestDumpdEscapesLcKeyInPlainDicts"]
  0c8ada6b_73c0_f100_2a54_885321287488 -->|defined in| c4a8d7fe_9c7d_27a9_b1d5_4a21a8860b2e
  2ea9aeeb_6aff_6243_335b_f7c665722dad["test_message_response_metadata_with_lc_key_escaped()"]
  2ea9aeeb_6aff_6243_335b_f7c665722dad -->|calls| 0c8ada6b_73c0_f100_2a54_885321287488
  2ea9aeeb_6aff_6243_335b_f7c665722dad["test_message_response_metadata_with_lc_key_escaped()"]
  0c8ada6b_73c0_f100_2a54_885321287488 -->|calls| 2ea9aeeb_6aff_6243_335b_f7c665722dad
  style 0c8ada6b_73c0_f100_2a54_885321287488 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/load/test_serializable.py lines 582–592

    def test_message_response_metadata_with_lc_key_escaped(self) -> None:
        """Test `AIMessage` with `'lc'` in `response_metadata` is escaped."""
        msg = AIMessage(
            content="Hello",
            response_metadata={"lc": 1},
        )

        serialized = dumpd(msg)
        assert serialized["kwargs"]["response_metadata"] == {
            "__lc_escaped__": {"lc": 1}
        }

Domain

Subdomains

Frequently Asked Questions

What does test_message_response_metadata_with_lc_key_escaped() do?
test_message_response_metadata_with_lc_key_escaped() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/load/test_serializable.py.
Where is test_message_response_metadata_with_lc_key_escaped() defined?
test_message_response_metadata_with_lc_key_escaped() is defined in libs/core/tests/unit_tests/load/test_serializable.py at line 582.
What does test_message_response_metadata_with_lc_key_escaped() call?
test_message_response_metadata_with_lc_key_escaped() calls 1 function(s): test_message_response_metadata_with_lc_key_escaped.
What calls test_message_response_metadata_with_lc_key_escaped()?
test_message_response_metadata_with_lc_key_escaped() is called by 1 function(s): test_message_response_metadata_with_lc_key_escaped.

Analyze Your Own Codebase

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

Try Supermodel Free