Home / Function/ test_prompt_template_add_with_with_another_format() — langchain Function Reference

test_prompt_template_add_with_with_another_format() — langchain Function Reference

Architecture documentation for the test_prompt_template_add_with_with_another_format() function in test_prompt.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d3e069b3_30eb_c954_7bfc_1c14e0c8a3f0["test_prompt_template_add_with_with_another_format()"]
  af1b998b_a7bf_9d5c_32ef_bab507a6bee3["test_prompt.py"]
  d3e069b3_30eb_c954_7bfc_1c14e0c8a3f0 -->|defined in| af1b998b_a7bf_9d5c_32ef_bab507a6bee3
  style d3e069b3_30eb_c954_7bfc_1c14e0c8a3f0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/prompts/test_prompt.py lines 682–687

def test_prompt_template_add_with_with_another_format() -> None:
    with pytest.raises(ValueError, match=r"Cannot add templates"):
        (
            PromptTemplate.from_template("This is a {template}")
            + PromptTemplate.from_template("So {{this}} is", template_format="mustache")
        )

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free