Home / Function/ get_full_inputs() — langchain Function Reference

get_full_inputs() — langchain Function Reference

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

Entity Profile

Dependency Diagram

graph TD
  398e54db_7082_c561_dd79_f8ba427c6a37["get_full_inputs()"]
  37fcc3f3_2798_3648_915c_2bffdd19bff7["Agent"]
  398e54db_7082_c561_dd79_f8ba427c6a37 -->|defined in| 37fcc3f3_2798_3648_915c_2bffdd19bff7
  6f6336fa_b69b_7bc5_3826_a2de86c2f1b9["plan()"]
  6f6336fa_b69b_7bc5_3826_a2de86c2f1b9 -->|calls| 398e54db_7082_c561_dd79_f8ba427c6a37
  44cf1bf5_a498_e468_d14a_0aa8267d73fb["aplan()"]
  44cf1bf5_a498_e468_d14a_0aa8267d73fb -->|calls| 398e54db_7082_c561_dd79_f8ba427c6a37
  f61de998_69fc_f269_1fb6_58fe712b9d99["_construct_scratchpad()"]
  398e54db_7082_c561_dd79_f8ba427c6a37 -->|calls| f61de998_69fc_f269_1fb6_58fe712b9d99
  style 398e54db_7082_c561_dd79_f8ba427c6a37 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

libs/langchain/langchain_classic/agents/agent.py lines 795–812

    def get_full_inputs(
        self,
        intermediate_steps: list[tuple[AgentAction, str]],
        **kwargs: Any,
    ) -> builtins.dict[str, Any]:
        """Create the full inputs for the LLMChain from intermediate steps.

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

        Returns:
            Full inputs for the LLMChain.
        """
        thoughts = self._construct_scratchpad(intermediate_steps)
        new_inputs = {"agent_scratchpad": thoughts, "stop": self._stop}
        return {**kwargs, **new_inputs}

Subdomains

Called By

Frequently Asked Questions

What does get_full_inputs() do?
get_full_inputs() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent.py.
Where is get_full_inputs() defined?
get_full_inputs() is defined in libs/langchain/langchain_classic/agents/agent.py at line 795.
What does get_full_inputs() call?
get_full_inputs() calls 1 function(s): _construct_scratchpad.
What calls get_full_inputs()?
get_full_inputs() is called by 2 function(s): aplan, plan.

Analyze Your Own Codebase

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

Try Supermodel Free