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