test_structured_single_str_decorator_no_infer_schema() — langchain Function Reference
Architecture documentation for the test_structured_single_str_decorator_no_infer_schema() function in test_tools.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD d13d329c_465d_b301_b537_9cc730cc72d3["test_structured_single_str_decorator_no_infer_schema()"] 8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"] d13d329c_465d_b301_b537_9cc730cc72d3 -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555 style d13d329c_465d_b301_b537_9cc730cc72d3 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/core/tests/unit_tests/test_tools.py lines 319–330
def test_structured_single_str_decorator_no_infer_schema() -> None:
"""Test functionality with structured arguments parsed as a decorator."""
@tool(infer_schema=False)
def unstructured_tool_input(tool_input: str) -> str:
"""Return the arguments directly."""
assert isinstance(tool_input, str)
return f"{tool_input}"
assert isinstance(unstructured_tool_input, BaseTool)
assert unstructured_tool_input.args_schema is None
assert unstructured_tool_input.run("foo") == "foo"
Domain
Subdomains
Defined In
Source
Frequently Asked Questions
What does test_structured_single_str_decorator_no_infer_schema() do?
test_structured_single_str_decorator_no_infer_schema() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is test_structured_single_str_decorator_no_infer_schema() defined?
test_structured_single_str_decorator_no_infer_schema() is defined in libs/core/tests/unit_tests/test_tools.py at line 319.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free