_call() — langchain Function Reference
Architecture documentation for the _call() function in llm_router.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 87ccce0a_1b7e_e8ff_7889_acaf7978975c["_call()"] 6583c2eb_e73e_04a5_2dfe_d3e26b9ec1eb["LLMRouterChain"] 87ccce0a_1b7e_e8ff_7889_acaf7978975c -->|defined in| 6583c2eb_e73e_04a5_2dfe_d3e26b9ec1eb 066a3cee_7375_f828_5dd4_9fcf318aa904["parse()"] 87ccce0a_1b7e_e8ff_7889_acaf7978975c -->|calls| 066a3cee_7375_f828_5dd4_9fcf318aa904 style 87ccce0a_1b7e_e8ff_7889_acaf7978975c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/chains/router/llm_router.py lines 129–141
def _call(
self,
inputs: dict[str, Any],
run_manager: CallbackManagerForChainRun | None = None,
) -> dict[str, Any]:
_run_manager = run_manager or CallbackManagerForChainRun.get_noop_manager()
callbacks = _run_manager.get_child()
prediction = self.llm_chain.predict(callbacks=callbacks, **inputs)
return cast(
"dict[str, Any]",
self.llm_chain.prompt.output_parser.parse(prediction),
)
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does _call() do?
_call() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/chains/router/llm_router.py.
Where is _call() defined?
_call() is defined in libs/langchain/langchain_classic/chains/router/llm_router.py at line 129.
What does _call() call?
_call() calls 1 function(s): parse.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free