test_forward_ref_annotated_base_tool_accepted() — langchain Function Reference
Architecture documentation for the test_forward_ref_annotated_base_tool_accepted() function in test_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD c9495237_2bf2_f899_37b9_6bc2be0c34c0["test_forward_ref_annotated_base_tool_accepted()"] 8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"] c9495237_2bf2_f899_37b9_6bc2be0c34c0 -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555 style c9495237_2bf2_f899_37b9_6bc2be0c34c0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_tools.py lines 160–175
def test_forward_ref_annotated_base_tool_accepted() -> None:
"""Test that a using forward ref annotation syntax is accepted."""
class _ForwardRefAnnotatedTool(BaseTool):
name: str = "structured_api"
args_schema: "type[BaseModel]" = _MockSchema
description: str = "A Structured Tool"
@override
def _run(self, *, arg1: int, arg2: bool, arg3: dict | None = None) -> str:
return f"{arg1} {arg2} {arg3}"
async def _arun(
self, *, arg1: int, arg2: bool, arg3: dict | None = None
) -> str:
raise NotImplementedError
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_forward_ref_annotated_base_tool_accepted() do?
test_forward_ref_annotated_base_tool_accepted() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is test_forward_ref_annotated_base_tool_accepted() defined?
test_forward_ref_annotated_base_tool_accepted() is defined in libs/core/tests/unit_tests/test_tools.py at line 160.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free