test_exception_handling_callable() — langchain Function Reference
Architecture documentation for the test_exception_handling_callable() function in test_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c302fbb8_2fe9_7583_34c6_ec0c991f233a["test_exception_handling_callable()"] 8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"] c302fbb8_2fe9_7583_34c6_ec0c991f233a -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555 style c302fbb8_2fe9_7583_34c6_ec0c991f233a fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_tools.py lines 800–808
def test_exception_handling_callable() -> None:
expected = "foo bar"
def handling(e: ToolException) -> str:
return expected
tool_ = _FakeExceptionTool(handle_tool_error=handling)
actual = tool_.run({})
assert expected == actual
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_exception_handling_callable() do?
test_exception_handling_callable() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is test_exception_handling_callable() defined?
test_exception_handling_callable() is defined in libs/core/tests/unit_tests/test_tools.py at line 800.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free