Home / Function/ _mock_structured_tool_with_artifact() — langchain Function Reference

_mock_structured_tool_with_artifact() — langchain Function Reference

Architecture documentation for the _mock_structured_tool_with_artifact() function in test_tools.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  94e6b9f0_c5ad_28ac_28fa_0eaa2cb699d3["_mock_structured_tool_with_artifact()"]
  8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"]
  94e6b9f0_c5ad_28ac_28fa_0eaa2cb699d3 -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555
  style 94e6b9f0_c5ad_28ac_28fa_0eaa2cb699d3 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/core/tests/unit_tests/test_tools.py lines 1514–1518

def _mock_structured_tool_with_artifact(
    *, arg1: int, arg2: bool, arg3: dict[str, str] | None = None
) -> tuple[str, dict[str, Any]]:
    """A Structured Tool."""
    return f"{arg1} {arg2}", {"arg1": arg1, "arg2": arg2, "arg3": arg3}

Domain

Subdomains

Frequently Asked Questions

What does _mock_structured_tool_with_artifact() do?
_mock_structured_tool_with_artifact() is a function in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is _mock_structured_tool_with_artifact() defined?
_mock_structured_tool_with_artifact() is defined in libs/core/tests/unit_tests/test_tools.py at line 1514.

Analyze Your Own Codebase

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

Try Supermodel Free