Home / Function/ test_image_prompt_template_deserializable() — langchain Function Reference

test_image_prompt_template_deserializable() — langchain Function Reference

Architecture documentation for the test_image_prompt_template_deserializable() function in test_image.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  47c53970_73bb_d846_bacf_d91634209c3b["test_image_prompt_template_deserializable()"]
  f0f18051_6b78_f197_e3bd_6f2de3ecd423["test_image.py"]
  47c53970_73bb_d846_bacf_d91634209c3b -->|defined in| f0f18051_6b78_f197_e3bd_6f2de3ecd423
  style 47c53970_73bb_d846_bacf_d91634209c3b fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/prompts/test_image.py lines 7–15

def test_image_prompt_template_deserializable() -> None:
    """Test that the image prompt template is serializable."""
    loads(
        dump.dumps(
            ChatPromptTemplate.from_messages(
                [("system", [{"type": "image", "image_url": "{img}"}])]
            )
        ),
    )

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free