_acall() — langchain Function Reference
Architecture documentation for the _acall() function in trajectory_eval_chain.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD bb74900d_feda_ef5a_51a9_181534374461["_acall()"] 9066f65c_c5a3_1534_5336_72609f4ff02b["TrajectoryEvalChain"] bb74900d_feda_ef5a_51a9_181534374461 -->|defined in| 9066f65c_c5a3_1534_5336_72609f4ff02b 8614258b_8a81_eb94_7789_5188d33b6103["parse()"] bb74900d_feda_ef5a_51a9_181534374461 -->|calls| 8614258b_8a81_eb94_7789_5188d33b6103 style bb74900d_feda_ef5a_51a9_181534374461 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py lines 304–326
async def _acall(
self,
inputs: dict[str, str],
run_manager: AsyncCallbackManagerForChainRun | None = None,
) -> dict[str, Any]:
"""Run the chain and generate the output.
Args:
inputs: The input values for the chain.
run_manager: The callback manager for the chain run.
Returns:
The output values of the chain.
"""
chain_input = {**inputs}
if self.agent_tools:
chain_input["tool_descriptions"] = self._tools_description
_run_manager = run_manager or AsyncCallbackManagerForChainRun.get_noop_manager()
raw_output = await self.eval_chain.arun(
chain_input,
callbacks=_run_manager.get_child(),
)
return cast("dict", self.output_parser.parse(raw_output))
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does _acall() do?
_acall() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py.
Where is _acall() defined?
_acall() is defined in libs/langchain/langchain_classic/evaluation/agents/trajectory_eval_chain.py at line 304.
What does _acall() call?
_acall() 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