Home / Function/ _call() — langchain Function Reference

_call() — langchain Function Reference

Architecture documentation for the _call() function in test_base.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  facc7f34_6e73_d7f9_19ad_3b7e6a4c6d3f["_call()"]
  3765bfcc_b5a9_3ceb_55b5_8f5ca217f561["FakeChain"]
  facc7f34_6e73_d7f9_19ad_3b7e6a4c6d3f -->|defined in| 3765bfcc_b5a9_3ceb_55b5_8f5ca217f561
  style facc7f34_6e73_d7f9_19ad_3b7e6a4c6d3f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/tests/unit_tests/chains/test_base.py lines 59–66

    def _call(
        self,
        inputs: dict[str, str],
        run_manager: CallbackManagerForChainRun | None = None,
    ) -> dict[str, str]:
        if self.be_correct:
            return {"bar": "baz"}
        return {"baz": "bar"}

Domain

Subdomains

Frequently Asked Questions

What does _call() do?
_call() is a function in the langchain codebase, defined in libs/langchain/tests/unit_tests/chains/test_base.py.
Where is _call() defined?
_call() is defined in libs/langchain/tests/unit_tests/chains/test_base.py at line 59.

Analyze Your Own Codebase

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

Try Supermodel Free