Home / Function/ _with_nulled_run_id() — langchain Function Reference

_with_nulled_run_id() — langchain Function Reference

Architecture documentation for the _with_nulled_run_id() function in test_runnable_events_v1.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  a14aef27_93bc_0ce1_f208_f5841ae9507f["_with_nulled_run_id()"]
  8ff41f3c_f250_f8de_8094_4f24860a10e0["test_runnable_events_v1.py"]
  a14aef27_93bc_0ce1_f208_f5841ae9507f -->|defined in| 8ff41f3c_f250_f8de_8094_4f24860a10e0
  aac0453e_34cd_4dce_c7fa_f176ab20140b["_collect_events()"]
  aac0453e_34cd_4dce_c7fa_f176ab20140b -->|calls| a14aef27_93bc_0ce1_f208_f5841ae9507f
  fa4fc5d4_750c_9dac_3690_f69ec02f9886["test_chain_ordering()"]
  fa4fc5d4_750c_9dac_3690_f69ec02f9886 -->|calls| a14aef27_93bc_0ce1_f208_f5841ae9507f
  57c0d7b0_4be7_678d_5c6f_d567215b6864["test_event_stream_with_retry()"]
  57c0d7b0_4be7_678d_5c6f_d567215b6864 -->|calls| a14aef27_93bc_0ce1_f208_f5841ae9507f
  style a14aef27_93bc_0ce1_f208_f5841ae9507f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/runnables/test_runnable_events_v1.py lines 38–44

def _with_nulled_run_id(events: Sequence[StreamEvent]) -> list[StreamEvent]:
    """Removes the run IDs from events."""
    for event in events:
        assert "parent_ids" in event, "Parent IDs should be present in the event."
        assert event["parent_ids"] == [], "Parent IDs should be empty."

    return cast("list[StreamEvent]", [{**event, "run_id": ""} for event in events])

Domain

Subdomains

Frequently Asked Questions

What does _with_nulled_run_id() do?
_with_nulled_run_id() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/runnables/test_runnable_events_v1.py.
Where is _with_nulled_run_id() defined?
_with_nulled_run_id() is defined in libs/core/tests/unit_tests/runnables/test_runnable_events_v1.py at line 38.
What calls _with_nulled_run_id()?
_with_nulled_run_id() is called by 3 function(s): _collect_events, test_chain_ordering, test_event_stream_with_retry.

Analyze Your Own Codebase

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

Try Supermodel Free