test_system_message() — langchain Function Reference
Architecture documentation for the test_system_message() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 374dc4fc_961b_1c67_6273_68ff2860ae36["test_system_message()"] af57ae60_607e_c138_9ab0_fb8bb1c5916a["test_chat_models.py"] 374dc4fc_961b_1c67_6273_68ff2860ae36 -->|defined in| af57ae60_607e_c138_9ab0_fb8bb1c5916a style 374dc4fc_961b_1c67_6273_68ff2860ae36 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/groq/tests/integration_tests/test_chat_models.py lines 394–401
def test_system_message() -> None:
"""Test ChatGroq wrapper with system message."""
chat = ChatGroq(model=DEFAULT_MODEL_NAME, max_tokens=10)
system_message = SystemMessage(content="You are to chat with the user.")
human_message = HumanMessage(content="Hello")
response = chat.invoke([system_message, human_message])
assert isinstance(response, BaseMessage)
assert isinstance(response.content, str)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_system_message() do?
test_system_message() is a function in the langchain codebase, defined in libs/partners/groq/tests/integration_tests/test_chat_models.py.
Where is test_system_message() defined?
test_system_message() is defined in libs/partners/groq/tests/integration_tests/test_chat_models.py at line 394.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free