_atake_next_step() — langchain Function Reference
Architecture documentation for the _atake_next_step() function in agent.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 1ddbcac4_c10b_0975_4498_6162d936691c["_atake_next_step()"] 493d4ce4_2303_08e0_2337_2bee34fe2662["AgentExecutor"] 1ddbcac4_c10b_0975_4498_6162d936691c -->|defined in| 493d4ce4_2303_08e0_2337_2bee34fe2662 0af1a14d_a510_7165_2c6d_4a48bbb56e65["_acall()"] 0af1a14d_a510_7165_2c6d_4a48bbb56e65 -->|calls| 1ddbcac4_c10b_0975_4498_6162d936691c 8ba5fb28_09bc_c37b_12f8_2a73e5591359["_consume_next_step()"] 1ddbcac4_c10b_0975_4498_6162d936691c -->|calls| 8ba5fb28_09bc_c37b_12f8_2a73e5591359 c61b7dc2_6e22_7735_1fa0_744874e0c701["_aiter_next_step()"] 1ddbcac4_c10b_0975_4498_6162d936691c -->|calls| c61b7dc2_6e22_7735_1fa0_744874e0c701 style 1ddbcac4_c10b_0975_4498_6162d936691c fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/agent.py lines 1419–1438
async def _atake_next_step(
self,
name_to_tool_map: dict[str, BaseTool],
color_mapping: dict[str, str],
inputs: dict[str, str],
intermediate_steps: list[tuple[AgentAction, str]],
run_manager: AsyncCallbackManagerForChainRun | None = None,
) -> AgentFinish | list[tuple[AgentAction, str]]:
return self._consume_next_step(
[
a
async for a in self._aiter_next_step(
name_to_tool_map,
color_mapping,
inputs,
intermediate_steps,
run_manager,
)
],
)
Domain
Subdomains
Called By
Source
Frequently Asked Questions
What does _atake_next_step() do?
_atake_next_step() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent.py.
Where is _atake_next_step() defined?
_atake_next_step() is defined in libs/langchain/langchain_classic/agents/agent.py at line 1419.
What does _atake_next_step() call?
_atake_next_step() calls 2 function(s): _aiter_next_step, _consume_next_step.
What calls _atake_next_step()?
_atake_next_step() is called by 1 function(s): _acall.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free