Home / Class/ _CustomRuntime Class — langchain Architecture

_CustomRuntime Class — langchain Architecture

Architecture documentation for the _CustomRuntime class in test_tools.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  f683bb3c_9b47_dbae_4b24_15f68a807fbb["_CustomRuntime"]
  24342f61_820d_5460_b307_51369f29b3eb["_DirectlyInjectedToolArg"]
  f683bb3c_9b47_dbae_4b24_15f68a807fbb -->|extends| 24342f61_820d_5460_b307_51369f29b3eb
  8e7836ae_e72c_f670_72a5_4ca6d46e3555["test_tools.py"]
  f683bb3c_9b47_dbae_4b24_15f68a807fbb -->|defined in| 8e7836ae_e72c_f670_72a5_4ca6d46e3555
  9d5cb840_8bc5_3f1a_6158_b3f2634a4f8c["__init__()"]
  f683bb3c_9b47_dbae_4b24_15f68a807fbb -->|method| 9d5cb840_8bc5_3f1a_6158_b3f2634a4f8c

Relationship Graph

Source Code

libs/core/tests/unit_tests/test_tools.py lines 3209–3213

class _CustomRuntime(_DirectlyInjectedToolArg):
    """Custom runtime info injected at tool call time."""

    def __init__(self, data: dict[str, Any]) -> None:
        self.data = data

Frequently Asked Questions

What is the _CustomRuntime class?
_CustomRuntime is a class in the langchain codebase, defined in libs/core/tests/unit_tests/test_tools.py.
Where is _CustomRuntime defined?
_CustomRuntime is defined in libs/core/tests/unit_tests/test_tools.py at line 3209.
What does _CustomRuntime extend?
_CustomRuntime extends _DirectlyInjectedToolArg.

Analyze Your Own Codebase

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

Try Supermodel Free