Home / Function/ test_human_message_with_secret_in_nested_additional_kwargs() — langchain Function Reference

test_human_message_with_secret_in_nested_additional_kwargs() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/core/tests/unit_tests/load/test_secret_injection.py lines 86–92

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

Domain

Subdomains

Frequently Asked Questions

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