test_transform_of_runnable_lambda_with_dicts() — langchain Function Reference
Architecture documentation for the test_transform_of_runnable_lambda_with_dicts() function in test_runnable.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 20706bbc_40ec_75b4_af9f_fb124fc63971["test_transform_of_runnable_lambda_with_dicts()"] 26df6ad8_0189_51d0_c3c1_6c3248893ff5["test_runnable.py"] 20706bbc_40ec_75b4_af9f_fb124fc63971 -->|defined in| 26df6ad8_0189_51d0_c3c1_6c3248893ff5 style 20706bbc_40ec_75b4_af9f_fb124fc63971 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/runnables/test_runnable.py lines 5464–5483
def test_transform_of_runnable_lambda_with_dicts() -> None:
"""Test transform of runnable lamdbda."""
runnable = RunnableLambda(lambda x: x)
chunks = iter(
[
{"foo": "n"},
]
)
assert list(runnable.transform(chunks)) == [{"foo": "n"}]
# Test as part of a sequence
seq = runnable | runnable
chunks = iter(
[
{"foo": "n"},
]
)
assert list(seq.transform(chunks)) == [{"foo": "n"}]
# Test some other edge cases
assert list(seq.stream({"foo": "n"})) == [{"foo": "n"}]
Domain
Subdomains
Source
Frequently Asked Questions
What does test_transform_of_runnable_lambda_with_dicts() do?
test_transform_of_runnable_lambda_with_dicts() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable.py.
Where is test_transform_of_runnable_lambda_with_dicts() defined?
test_transform_of_runnable_lambda_with_dicts() is defined in libs/core/tests/unit_tests/runnables/test_runnable.py at line 5464.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free