Home / Function/ test_msg_no_text() — langchain Function Reference

test_msg_no_text() — langchain Function Reference

Architecture documentation for the test_msg_no_text() function in test_chat_generation.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  a2b4dbfe_cdbc_5624_2238_26d9bef6d78f["test_msg_no_text()"]
  f9b60b63_1916_8d73_75dc_44cd4229a6d8["test_chat_generation.py"]
  a2b4dbfe_cdbc_5624_2238_26d9bef6d78f -->|defined in| f9b60b63_1916_8d73_75dc_44cd4229a6d8
  style a2b4dbfe_cdbc_5624_2238_26d9bef6d78f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/outputs/test_chat_generation.py lines 29–32

def test_msg_no_text(content: str | list[str | dict[str, Any]]) -> None:
    expected = ""
    actual = ChatGeneration(message=AIMessage(content=content)).text
    assert actual == expected

Subdomains

Frequently Asked Questions

What does test_msg_no_text() do?
test_msg_no_text() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/outputs/test_chat_generation.py.
Where is test_msg_no_text() defined?
test_msg_no_text() is defined in libs/core/tests/unit_tests/outputs/test_chat_generation.py at line 29.

Analyze Your Own Codebase

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

Try Supermodel Free