_FakeExceptionTool Class — langchain Architecture
Architecture documentation for the _FakeExceptionTool class in test_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD ba77f44b_4604_f20b_e6d1_a2497fc9038c["_FakeExceptionTool"] 18e85ff8_9a5d_f800_f722_027398dc89e7["BaseTool"] ba77f44b_4604_f20b_e6d1_a2497fc9038c -->|extends| 18e85ff8_9a5d_f800_f722_027398dc89e7 8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"] ba77f44b_4604_f20b_e6d1_a2497fc9038c -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555 223a741d_bc48_c8df_71d4_90f5aa93b87c["_run()"] ba77f44b_4604_f20b_e6d1_a2497fc9038c -->|method| 223a741d_bc48_c8df_71d4_90f5aa93b87c d42c73f3_e431_ef29_4af9_1be6b41c749b["_arun()"] ba77f44b_4604_f20b_e6d1_a2497fc9038c -->|method| d42c73f3_e431_ef29_4af9_1be6b41c749b
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_tools.py lines 774–783
class _FakeExceptionTool(BaseTool):
name: str = "exception"
description: str = "an exception-throwing tool"
exception: Exception = ToolException()
def _run(self) -> str:
raise self.exception
async def _arun(self) -> str:
raise self.exception
Defined In
Extends
Source
Frequently Asked Questions
What is the _FakeExceptionTool class?
_FakeExceptionTool is a class in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is _FakeExceptionTool defined?
_FakeExceptionTool is defined in libs/core/tests/unit_tests/test_tools.py at line 774.
What does _FakeExceptionTool extend?
_FakeExceptionTool extends BaseTool.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free