test_manually_specify_rid_async() — langchain Function Reference
Architecture documentation for the test_manually_specify_rid_async() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 56ca296b_7e98_15f3_4d36_69d48d111210["test_manually_specify_rid_async()"] cbc5b920_9825_eac5_8cc4_bc8187fb214c["test_base.py"] 56ca296b_7e98_15f3_4d36_69d48d111210 -->|defined in| cbc5b920_9825_eac5_8cc4_bc8187fb214c style 56ca296b_7e98_15f3_4d36_69d48d111210 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/tests/unit_tests/chains/test_base.py lines 214–227
async def test_manually_specify_rid_async() -> None:
chain = FakeChain()
run_id = uuid.uuid4()
with collect_runs() as cb:
await chain.ainvoke({"foo": "bar"}, {"run_id": run_id})
run = cb.traced_runs[0]
assert run.id == run_id
run_id2 = uuid.uuid4()
with collect_runs() as cb:
res = chain.astream({"foo": "bar"}, {"run_id": run_id2})
async for _ in res:
pass
run = cb.traced_runs[0]
assert run.id == run_id2
Domain
Subdomains
Source
Frequently Asked Questions
What does test_manually_specify_rid_async() do?
test_manually_specify_rid_async() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_base.py.
Where is test_manually_specify_rid_async() defined?
test_manually_specify_rid_async() is defined in libs/langchain/tests/unit_tests/chains/test_base.py at line 214.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free