Home / Function/ aplan() — langchain Function Reference

aplan() — langchain Function Reference

Architecture documentation for the aplan() function in agent.py from the langchain codebase.

Entity Profile

Dependency Diagram

graph TD
  3b577de0_fb5e_78d3_db9f_6c9a46325e38["aplan()"]
  2066c331_3189_1880_ba09_f5a3c375c553["BaseSingleActionAgent"]
  3b577de0_fb5e_78d3_db9f_6c9a46325e38 -->|defined in| 2066c331_3189_1880_ba09_f5a3c375c553
  6f0df2b5_3eae_dfc5_06c2_f70cf546a695["aplan()"]
  6f0df2b5_3eae_dfc5_06c2_f70cf546a695 -->|calls| 3b577de0_fb5e_78d3_db9f_6c9a46325e38
  5abe9fa6_dd3a_d566_d506_61ece1034db8["aplan()"]
  5abe9fa6_dd3a_d566_d506_61ece1034db8 -->|calls| 3b577de0_fb5e_78d3_db9f_6c9a46325e38
  44cf1bf5_a498_e468_d14a_0aa8267d73fb["aplan()"]
  44cf1bf5_a498_e468_d14a_0aa8267d73fb -->|calls| 3b577de0_fb5e_78d3_db9f_6c9a46325e38
  5741fa2f_805c_1a46_0802_547d3beef2d0["aplan()"]
  3b577de0_fb5e_78d3_db9f_6c9a46325e38 -->|calls| 5741fa2f_805c_1a46_0802_547d3beef2d0
  style 3b577de0_fb5e_78d3_db9f_6c9a46325e38 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/agent.py lines 87–103

    async def aplan(
        self,
        intermediate_steps: list[tuple[AgentAction, str]],
        callbacks: Callbacks = None,
        **kwargs: Any,
    ) -> AgentAction | AgentFinish:
        """Async given input, decided what to do.

        Args:
            intermediate_steps: Steps the LLM has taken to date,
                along with observations.
            callbacks: Callbacks to run.
            **kwargs: User inputs.

        Returns:
            Action specifying what tool to use.
        """

Subdomains

Calls

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 87.
What does aplan() call?
aplan() calls 1 function(s): aplan.
What calls aplan()?
aplan() is called by 3 function(s): aplan, aplan, aplan.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free