Home / Function/ _call() — langchain Function Reference

_call() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  f81221be_a2ac_a3e7_7819_30fb88a7c9bc["_call()"]
  5aa56bcf_82c4_0170_f600_dbc266dbf61b["LLMCheckerChain"]
  f81221be_a2ac_a3e7_7819_30fb88a7c9bc -->|defined in| 5aa56bcf_82c4_0170_f600_dbc266dbf61b
  style f81221be_a2ac_a3e7_7819_30fb88a7c9bc fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/chains/llm_checker/base.py lines 149–161

    def _call(
        self,
        inputs: dict[str, Any],
        run_manager: CallbackManagerForChainRun | None = None,
    ) -> dict[str, str]:
        _run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager()
        question = inputs[self.input_key]

        output = self.question_to_checked_assertions_chain(
            {"question": question},
            callbacks=_run_manager.get_child(),
        )
        return {self.output_key: output["revised_statement"]}

Subdomains

Frequently Asked Questions

What does _call() do?
_call() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/llm_checker/base.py.
Where is _call() defined?
_call() is defined in libs/langchain/langchain_classic/chains/llm_checker/base.py at line 149.

Analyze Your Own Codebase

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

Try Supermodel Free