Home / Function/ test_disable_streaming_no_streaming_model_async() — langchain Function Reference

test_disable_streaming_no_streaming_model_async() — langchain Function Reference

Architecture documentation for the test_disable_streaming_no_streaming_model_async() function in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  be8606ec_7498_cd1a_7e5c_7c9fc3ea2f61["test_disable_streaming_no_streaming_model_async()"]
  8cb88ac4_61d9_baf3_9df4_9b3f5095927e["test_base.py"]
  be8606ec_7498_cd1a_7e5c_7c9fc3ea2f61 -->|defined in| 8cb88ac4_61d9_baf3_9df4_9b3f5095927e
  style be8606ec_7498_cd1a_7e5c_7c9fc3ea2f61 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/language_models/chat_models/test_base.py lines 457–471

async def test_disable_streaming_no_streaming_model_async(
    *,
    disable_streaming: bool | Literal["tool_calling"],
) -> None:
    model = NoStreamingModel(disable_streaming=disable_streaming)
    assert (await model.ainvoke([])).content == "invoke"
    async for c in model.astream([]):
        assert c.content == "invoke"
        break
    assert (
        await model.ainvoke([], config={"callbacks": [_AstreamEventsCallbackHandler()]})
    ).content == "invoke"
    async for c in model.astream([], tools=[{}]):
        assert c.content == "invoke"
        break

Domain

Subdomains

Frequently Asked Questions

What does test_disable_streaming_no_streaming_model_async() do?
test_disable_streaming_no_streaming_model_async() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/language_models/chat_models/test_base.py.
Where is test_disable_streaming_no_streaming_model_async() defined?
test_disable_streaming_no_streaming_model_async() is defined in libs/core/tests/unit_tests/language_models/chat_models/test_base.py at line 457.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free