Home / Function/ assert_bar() — langchain Function Reference

assert_bar() — langchain Function Reference

Architecture documentation for the assert_bar() function in test_tools.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  d37f0c4f_4bab_da15_5b6d_d2b611a6ad2e["assert_bar()"]
  8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"]
  d37f0c4f_4bab_da15_5b6d_d2b611a6ad2e -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555
  b621c544_d6db_7e8d_7240_9ce08870d71a["foo()"]
  b621c544_d6db_7e8d_7240_9ce08870d71a -->|calls| d37f0c4f_4bab_da15_5b6d_d2b611a6ad2e
  20ac7da9_1a5a_49c1_72f7_b5ef76a08682["afoo()"]
  20ac7da9_1a5a_49c1_72f7_b5ef76a08682 -->|calls| d37f0c4f_4bab_da15_5b6d_d2b611a6ad2e
  13b1c7ad_7bba_de8c_d092_0675a2328e86["simple_foo()"]
  13b1c7ad_7bba_de8c_d092_0675a2328e86 -->|calls| d37f0c4f_4bab_da15_5b6d_d2b611a6ad2e
  644adf6c_24dc_d42d_d54c_62723253fec7["asimple_foo()"]
  644adf6c_24dc_d42d_d54c_62723253fec7 -->|calls| d37f0c4f_4bab_da15_5b6d_d2b611a6ad2e
  9578fda7_f66b_c71f_7c63_365a2e51c761["_run()"]
  9578fda7_f66b_c71f_7c63_365a2e51c761 -->|calls| d37f0c4f_4bab_da15_5b6d_d2b611a6ad2e
  6de0aaf9_c2da_4cb9_70dc_d76eeb5d0abf["_arun()"]
  6de0aaf9_c2da_4cb9_70dc_d76eeb5d0abf -->|calls| d37f0c4f_4bab_da15_5b6d_d2b611a6ad2e
  style d37f0c4f_4bab_da15_5b6d_d2b611a6ad2e fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/test_tools.py lines 1090–1093

def assert_bar(bar: Any, bar_config: RunnableConfig) -> Any:
    assert bar_config["configurable"]["foo"] == "not-bar"
    assert bar == "baz"
    return bar

Domain

Subdomains

Frequently Asked Questions

What does assert_bar() do?
assert_bar() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is assert_bar() defined?
assert_bar() is defined in libs/core/tests/unit_tests/test_tools.py at line 1090.
What calls assert_bar()?
assert_bar() is called by 6 function(s): _arun, _run, afoo, asimple_foo, foo, simple_foo.

Analyze Your Own Codebase

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

Try Supermodel Free