Home / Function/ test_human_message_with_secret_in_additional_kwargs() — langchain Function Reference

test_human_message_with_secret_in_additional_kwargs() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/core/tests/unit_tests/load/test_secret_injection.py lines 78–84

    def test_human_message_with_secret_in_additional_kwargs(self) -> None:
        """`HumanMessage` with secret-like dict in `additional_kwargs`."""
        msg = HumanMessage(
            content="Hello",
            additional_kwargs={"data": MALICIOUS_SECRET_DICT},
        )
        _assert_no_secret_leak(msg)

Domain

Subdomains

Frequently Asked Questions

What does test_human_message_with_secret_in_additional_kwargs() do?
test_human_message_with_secret_in_additional_kwargs() 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_additional_kwargs() defined?
test_human_message_with_secret_in_additional_kwargs() is defined in libs/core/tests/unit_tests/load/test_secret_injection.py at line 78.
What does test_human_message_with_secret_in_additional_kwargs() call?
test_human_message_with_secret_in_additional_kwargs() 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