_call() — langchain Function Reference
Architecture documentation for the _call() function in llm.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 85bfcf5c_48e7_0dba_6c8e_553c4c40a5ea["_call()"] ccf50fe1_4990_cf19_1e2d_25efe83f53c5["LLMChain"] 85bfcf5c_48e7_0dba_6c8e_553c4c40a5ea -->|defined in| ccf50fe1_4990_cf19_1e2d_25efe83f53c5 377cb47d_aeea_738a_00c1_527af33d920e["generate()"] 85bfcf5c_48e7_0dba_6c8e_553c4c40a5ea -->|calls| 377cb47d_aeea_738a_00c1_527af33d920e 18717271_ee47_6d4a_ccbd_dc7577e19985["create_outputs()"] 85bfcf5c_48e7_0dba_6c8e_553c4c40a5ea -->|calls| 18717271_ee47_6d4a_ccbd_dc7577e19985 style 85bfcf5c_48e7_0dba_6c8e_553c4c40a5ea fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/llm.py lines 112–118
def _call(
self,
inputs: dict[str, Any],
run_manager: CallbackManagerForChainRun | None = None,
) -> dict[str, str]:
response = self.generate([inputs], run_manager=run_manager)
return self.create_outputs(response)[0]
Domain
Subdomains
Source
Frequently Asked Questions
What does _call() do?
_call() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/llm.py.
Where is _call() defined?
_call() is defined in libs/langchain/langchain_classic/chains/llm.py at line 112.
What does _call() call?
_call() calls 2 function(s): create_outputs, generate.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free