test_dict_message_prompt_template_errors_on_jinja2() — langchain Function Reference
Architecture documentation for the test_dict_message_prompt_template_errors_on_jinja2() function in test_chat.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD be925d9f_f0b4_54f3_62ca_dec09cc8947f["test_dict_message_prompt_template_errors_on_jinja2()"] bf3138ca_0068_68ea_f479_35376e264d13["test_chat.py"] be925d9f_f0b4_54f3_62ca_dec09cc8947f -->|defined in| bf3138ca_0068_68ea_f479_35376e264d13 style be925d9f_f0b4_54f3_62ca_dec09cc8947f fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/prompts/test_chat.py lines 1461–1471
def test_dict_message_prompt_template_errors_on_jinja2() -> None:
prompt = {
"type": "image",
"source_type": "base64",
"data": "{source_data}",
}
with pytest.raises(ValueError, match="jinja2"):
_ = ChatPromptTemplate.from_messages(
[("human", [prompt])], template_format="jinja2"
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_dict_message_prompt_template_errors_on_jinja2() do?
test_dict_message_prompt_template_errors_on_jinja2() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_chat.py.
Where is test_dict_message_prompt_template_errors_on_jinja2() defined?
test_dict_message_prompt_template_errors_on_jinja2() is defined in libs/core/tests/unit_tests/prompts/test_chat.py at line 1461.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free