Home / Function/ test_has_input_schema() — langchain Function Reference

test_has_input_schema() — langchain Function Reference

Architecture documentation for the test_has_input_schema() function in tools.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  4f5fe846_7a58_1bb9_e3e5_c4b67b3351f0["test_has_input_schema()"]
  5b8c9c93_fb5c_4750_c17c_9d41c1862020["ToolsUnitTests"]
  4f5fe846_7a58_1bb9_e3e5_c4b67b3351f0 -->|defined in| 5b8c9c93_fb5c_4750_c17c_9d41c1862020
  style 4f5fe846_7a58_1bb9_e3e5_c4b67b3351f0 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/standard-tests/langchain_tests/unit_tests/tools.py lines 105–114

    def test_has_input_schema(self, tool: BaseTool) -> None:
        """Tests that the tool has an input schema.

        If this fails, add an `args_schema` to your tool.

        See [this guide](https://docs.langchain.com/oss/python/contributing/implement-langchain#tools)
        and see how `CalculatorInput` is configured in the
        `CustomCalculatorTool.args_schema` attribute
        """
        assert tool.get_input_schema()

Domain

Subdomains

Frequently Asked Questions

What does test_has_input_schema() do?
test_has_input_schema() is a function in the langchain codebase, defined in libs/standard-tests/langchain_tests/unit_tests/tools.py.
Where is test_has_input_schema() defined?
test_has_input_schema() is defined in libs/standard-tests/langchain_tests/unit_tests/tools.py at line 105.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free