Home / Function/ test_input_schema_matches_invoke_params() — langchain Function Reference

test_input_schema_matches_invoke_params() — langchain Function Reference

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

Entity Profile

Dependency Diagram

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

Relationship Graph

Source Code

libs/standard-tests/langchain_tests/unit_tests/tools.py lines 116–125

    def test_input_schema_matches_invoke_params(self, tool: BaseTool) -> None:
        """Tests that the provided example params match the declared input schema.

        If this fails, update the `tool_invoke_params_example` attribute to match
        the input schema (`args_schema`) of the tool.
        """
        # This will be a Pydantic object
        input_schema = tool.get_input_schema()

        assert input_schema(**self.tool_invoke_params_example)

Domain

Subdomains

Frequently Asked Questions

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

Analyze Your Own Codebase

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

Try Supermodel Free