test_system_prompt_property_with_list_content() — langchain Function Reference
Architecture documentation for the test_system_prompt_property_with_list_content() function in test_system_message.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 57cd64d3_9304_9d2c_cb9e_bd2441c0dbbf["test_system_prompt_property_with_list_content()"] fdcac224_4658_3042_d41f_938e751993a3["TestModelRequestSystemMessage"] 57cd64d3_9304_9d2c_cb9e_bd2441c0dbbf -->|defined in| fdcac224_4658_3042_d41f_938e751993a3 style 57cd64d3_9304_9d2c_cb9e_bd2441c0dbbf fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain_v1/tests/unit_tests/agents/test_system_message.py lines 102–119
def test_system_prompt_property_with_list_content(self) -> None:
"""Test system_prompt property handles list content."""
model = GenericFakeChatModel(messages=iter([AIMessage(content="Hello")]))
system_msg = SystemMessage(content=["Part 1", "Part 2"])
request = ModelRequest(
model=model,
system_message=system_msg,
messages=[],
tool_choice=None,
tools=[],
response_format=None,
state=AgentState(messages=[]),
runtime=None,
)
assert request.system_prompt is not None
assert "Part 1" in request.system_prompt
Domain
Subdomains
Source
Frequently Asked Questions
What does test_system_prompt_property_with_list_content() do?
test_system_prompt_property_with_list_content() is a function in the langchain codebase, defined in libs/langchain_v1/tests/unit_tests/agents/test_system_message.py.
Where is test_system_prompt_property_with_list_content() defined?
test_system_prompt_property_with_list_content() is defined in libs/langchain_v1/tests/unit_tests/agents/test_system_message.py at line 102.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free