Home / Function/ test_data_prompt_template_deserializable() — langchain Function Reference

test_data_prompt_template_deserializable() — langchain Function Reference

Architecture documentation for the test_data_prompt_template_deserializable() function in test_chat.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  ef4553be_e394_b6f9_8941_74d677629fef["test_data_prompt_template_deserializable()"]
  00c8bbe0_a31c_1ac8_487a_bfd5a9d6b117["test_chat.py"]
  ef4553be_e394_b6f9_8941_74d677629fef -->|defined in| 00c8bbe0_a31c_1ac8_487a_bfd5a9d6b117
  style ef4553be_e394_b6f9_8941_74d677629fef fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/prompts/test_chat.py lines 1390–1403

def test_data_prompt_template_deserializable() -> None:
    """Test that the image prompt template is serializable."""
    load(
        dumpd(
            ChatPromptTemplate.from_messages(
                [
                    (
                        "system",
                        [{"type": "image", "source_type": "url", "url": "{url}"}],
                    )
                ]
            )
        ),
    )

Domain

Subdomains

Frequently Asked Questions

What does test_data_prompt_template_deserializable() do?
test_data_prompt_template_deserializable() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_chat.py.
Where is test_data_prompt_template_deserializable() defined?
test_data_prompt_template_deserializable() is defined in libs/core/tests/unit_tests/prompts/test_chat.py at line 1390.

Analyze Your Own Codebase

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

Try Supermodel Free