Home / Function/ test_passthrough_atransform_with_dicts() — langchain Function Reference

test_passthrough_atransform_with_dicts() — langchain Function Reference

Architecture documentation for the test_passthrough_atransform_with_dicts() function in test_runnable.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d9d342a8_a37d_eefa_408d_49afdc0ace6f["test_passthrough_atransform_with_dicts()"]
  26df6ad8_0189_51d0_c3c1_6c3248893ff5["test_runnable.py"]
  d9d342a8_a37d_eefa_408d_49afdc0ace6f -->|defined in| 26df6ad8_0189_51d0_c3c1_6c3248893ff5
  style d9d342a8_a37d_eefa_408d_49afdc0ace6f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_runnable.py lines 5566–5575

async def test_passthrough_atransform_with_dicts() -> None:
    """Test that default transform works with dicts."""
    runnable = RunnablePassthrough(lambda x: x)

    async def chunk_iterator() -> AsyncIterator[dict[str, str]]:
        yield {"foo": "a"}
        yield {"foo": "n"}

    chunks = [chunk async for chunk in runnable.atransform(chunk_iterator())]
    assert chunks == [{"foo": "a"}, {"foo": "n"}]

Domain

Subdomains

Frequently Asked Questions

What does test_passthrough_atransform_with_dicts() do?
test_passthrough_atransform_with_dicts() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is test_passthrough_atransform_with_dicts() defined?
test_passthrough_atransform_with_dicts() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 5566.

Analyze Your Own Codebase

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

Try Supermodel Free