test_async_tool_pass_context() — langchain Function Reference
Architecture documentation for the test_async_tool_pass_context() function in test_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 88dc5c01_2350_c42c_d930_7bfbe7ac2411["test_async_tool_pass_context()"] 8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"] 88dc5c01_2350_c42c_d930_7bfbe7ac2411 -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555 b621c544_d6db_7e8d_7240_9ce08870d71a["foo()"] 88dc5c01_2350_c42c_d930_7bfbe7ac2411 -->|calls| b621c544_d6db_7e8d_7240_9ce08870d71a style 88dc5c01_2350_c42c_d930_7bfbe7ac2411 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_tools.py lines 1076–1087
async def test_async_tool_pass_context() -> None:
@tool
async def foo(bar: str) -> str:
"""The foo."""
config = ensure_config()
assert config["configurable"]["foo"] == "not-bar"
assert bar == "baz"
return bar
assert (
await foo.ainvoke({"bar": "baz"}, {"configurable": {"foo": "not-bar"}}) == "baz"
)
Domain
Subdomains
Defined In
Calls
Source
Frequently Asked Questions
What does test_async_tool_pass_context() do?
test_async_tool_pass_context() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is test_async_tool_pass_context() defined?
test_async_tool_pass_context() is defined in libs/core/tests/unit_tests/test_tools.py at line 1076.
What does test_async_tool_pass_context() call?
test_async_tool_pass_context() calls 1 function(s): foo.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free