Home / Function/ test_tool_pass_config_non_pickleable() — langchain Function Reference

test_tool_pass_config_non_pickleable() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  6a478352_a96b_991e_7397_665d0cdf5e6c["test_tool_pass_config_non_pickleable()"]
  8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"]
  6a478352_a96b_991e_7397_665d0cdf5e6c -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555
  style 6a478352_a96b_991e_7397_665d0cdf5e6c fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/test_tools.py lines 1156–1167

def test_tool_pass_config_non_pickleable() -> None:
    tool = FooBaseNonPickleable()

    args = {"bar": threading.Lock()}
    tool_call = {
        "name": tool.name,
        "args": args,
        "id": "abc123",
        "type": "tool_call",
    }
    _ = tool.invoke(tool_call, {"configurable": {"foo": "not-bar"}})
    assert tool_call["args"] == args

Domain

Subdomains

Frequently Asked Questions

What does test_tool_pass_config_non_pickleable() do?
test_tool_pass_config_non_pickleable() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is test_tool_pass_config_non_pickleable() defined?
test_tool_pass_config_non_pickleable() is defined in libs/core/tests/unit_tests/test_tools.py at line 1156.

Analyze Your Own Codebase

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

Try Supermodel Free