test_pass_run_id() — langchain Function Reference
Architecture documentation for the test_pass_run_id() function in test_base.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD e834466f_d5df_1b31_cb85_73d991130fbc["test_pass_run_id()"] 8830054d_ac1e_daa9_c6c5_ff55b10d0bf3["test_base.py"] e834466f_d5df_1b31_cb85_73d991130fbc -->|defined in| 8830054d_ac1e_daa9_c6c5_ff55b10d0bf3 style e834466f_d5df_1b31_cb85_73d991130fbc fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/language_models/chat_models/test_base.py lines 322–333
def test_pass_run_id() -> None:
llm = FakeListChatModel(responses=["a", "b", "c"])
cb = FakeTracer()
uid1 = uuid.uuid4()
llm.invoke("Dummy message", {"callbacks": [cb], "run_id": uid1})
assert cb.traced_run_ids == [uid1]
uid2 = uuid.uuid4()
list(llm.stream("Dummy message", {"callbacks": [cb], "run_id": uid2}))
assert cb.traced_run_ids == [uid1, uid2]
uid3 = uuid.uuid4()
llm.batch([["Dummy message"]], {"callbacks": [cb], "run_id": uid3})
assert cb.traced_run_ids == [uid1, uid2, uid3]
Domain
Subdomains
Source
Frequently Asked Questions
What does test_pass_run_id() do?
test_pass_run_id() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/language_models/chat_models/test_base.py.
Where is test_pass_run_id() defined?
test_pass_run_id() is defined in libs/core/tests/unit_tests/language_models/chat_models/test_base.py at line 322.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free