test_standard_generation() — langchain Function Reference
Architecture documentation for the test_standard_generation() function in test_chat_models.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 6796af7b_3011_76ca_f40d_fa8186d8b184["test_standard_generation()"] 974a163b_6ea0_9385_8678_c36e3c96fcdf["TestChatPerplexityIntegration"] 6796af7b_3011_76ca_f40d_fa8186d8b184 -->|defined in| 974a163b_6ea0_9385_8678_c36e3c96fcdf style 6796af7b_3011_76ca_f40d_fa8186d8b184 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/partners/perplexity/tests/integration_tests/test_chat_models.py lines 13–19
def test_standard_generation(self) -> None:
"""Test standard generation."""
chat = ChatPerplexity(model="sonar", temperature=0)
message = HumanMessage(content="Hello! How are you?")
response = chat.invoke([message])
assert response.content
assert isinstance(response.content, str)
Domain
Subdomains
Source
Frequently Asked Questions
What does test_standard_generation() do?
test_standard_generation() is a function in the langchain codebase, defined in libs/partners/perplexity/tests/integration_tests/test_chat_models.py.
Where is test_standard_generation() defined?
test_standard_generation() is defined in libs/partners/perplexity/tests/integration_tests/test_chat_models.py at line 13.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free