Home / Function/ test_human_message_with_secret_in_content() — langchain Function Reference

test_human_message_with_secret_in_content() — langchain Function Reference

Architecture documentation for the test_human_message_with_secret_in_content() function in test_secret_injection.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  03d21ef4_b6c3_9e00_e36f_43032730fb4f["test_human_message_with_secret_in_content()"]
  a31f3612_4078_d3f5_ad7f_fe2a7591bf7b["TestSerializableTopLevel"]
  03d21ef4_b6c3_9e00_e36f_43032730fb4f -->|defined in| a31f3612_4078_d3f5_ad7f_fe2a7591bf7b
  9667a3de_eb6c_d235_9e9f_0bb0ddcacee3["_assert_no_secret_leak()"]
  03d21ef4_b6c3_9e00_e36f_43032730fb4f -->|calls| 9667a3de_eb6c_d235_9e9f_0bb0ddcacee3
  style 03d21ef4_b6c3_9e00_e36f_43032730fb4f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/load/test_secret_injection.py lines 68–76

    def test_human_message_with_secret_in_content(self) -> None:
        """`HumanMessage` with secret-like dict in `content`."""
        msg = HumanMessage(
            content=[
                {"type": "text", "text": "Hello"},
                {"type": "text", "text": MALICIOUS_SECRET_DICT},
            ]
        )
        _assert_no_secret_leak(msg)

Domain

Subdomains

Frequently Asked Questions

What does test_human_message_with_secret_in_content() do?
test_human_message_with_secret_in_content() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/load/test_secret_injection.py.
Where is test_human_message_with_secret_in_content() defined?
test_human_message_with_secret_in_content() is defined in libs/core/tests/unit_tests/load/test_secret_injection.py at line 68.
What does test_human_message_with_secret_in_content() call?
test_human_message_with_secret_in_content() calls 1 function(s): _assert_no_secret_leak.

Analyze Your Own Codebase

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

Try Supermodel Free