test_create_system_message_prompt_list_template_partial_variables_not_null() — langchain Function Reference
Architecture documentation for the test_create_system_message_prompt_list_template_partial_variables_not_null() function in test_chat.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 4d268db7_826c_3382_4b10_5fb901206610["test_create_system_message_prompt_list_template_partial_variables_not_null()"] bf3138ca_0068_68ea_f479_35376e264d13["test_chat.py"] 4d268db7_826c_3382_4b10_5fb901206610 -->|defined in| bf3138ca_0068_68ea_f479_35376e264d13 style 4d268db7_826c_3382_4b10_5fb901206610 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/prompts/test_chat.py lines 156–175
def test_create_system_message_prompt_list_template_partial_variables_not_null() -> (
None
):
graph_creator_content1 = """
This is the prompt for the first test:
{variables}
"""
graph_creator_content2 = """
This is the prompt for the second test:
{variables}
"""
with pytest.raises(
ValueError, match="Partial variables are not supported for list of templates"
):
_ = SystemMessagePromptTemplate.from_template(
template=[graph_creator_content1, graph_creator_content2],
input_variables=["variables"],
partial_variables={"variables": "foo"},
)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_create_system_message_prompt_list_template_partial_variables_not_null() do?
test_create_system_message_prompt_list_template_partial_variables_not_null() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/prompts/test_chat.py.
Where is test_create_system_message_prompt_list_template_partial_variables_not_null() defined?
test_create_system_message_prompt_list_template_partial_variables_not_null() is defined in libs/core/tests/unit_tests/prompts/test_chat.py at line 156.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free