aplan() — langchain Function Reference
Architecture documentation for the aplan() function in agent.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 5741fa2f_805c_1a46_0802_547d3beef2d0["aplan()"] da24d66e_6dad_d8e1_dddc_7885d3e6576f["BaseMultiActionAgent"] 5741fa2f_805c_1a46_0802_547d3beef2d0 -->|defined in| da24d66e_6dad_d8e1_dddc_7885d3e6576f 3b577de0_fb5e_78d3_db9f_6c9a46325e38["aplan()"] 3b577de0_fb5e_78d3_db9f_6c9a46325e38 -->|calls| 5741fa2f_805c_1a46_0802_547d3beef2d0 2930f93d_205d_ca04_bcf2_65e6c3a766a2["aplan()"] 2930f93d_205d_ca04_bcf2_65e6c3a766a2 -->|calls| 5741fa2f_805c_1a46_0802_547d3beef2d0 2930f93d_205d_ca04_bcf2_65e6c3a766a2["aplan()"] 5741fa2f_805c_1a46_0802_547d3beef2d0 -->|calls| 2930f93d_205d_ca04_bcf2_65e6c3a766a2 style 5741fa2f_805c_1a46_0802_547d3beef2d0 fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/agent.py lines 257–273
async def aplan(
self,
intermediate_steps: list[tuple[AgentAction, str]],
callbacks: Callbacks = None,
**kwargs: Any,
) -> list[AgentAction] | AgentFinish:
"""Async given input, decided what to do.
Args:
intermediate_steps: Steps the LLM has taken to date,
along with the observations.
callbacks: Callbacks to run.
**kwargs: User inputs.
Returns:
Actions specifying what tool to use.
"""
Domain
Subdomains
Calls
Source
Frequently Asked Questions
What does aplan() do?
aplan() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent.py.
Where is aplan() defined?
aplan() is defined in libs/langchain/langchain_classic/agents/agent.py at line 257.
What does aplan() call?
aplan() calls 1 function(s): aplan.
What calls aplan()?
aplan() is called by 2 function(s): aplan, aplan.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free