from_llm_and_tools() — langchain Function Reference
Architecture documentation for the from_llm_and_tools() function in agent.py from the langchain codebase.
Entity Profile
Dependency Diagram
graph TD 17edecaa_ea70_0ca0_a54a_689470a272cb["from_llm_and_tools()"] 2066c331_3189_1880_ba09_f5a3c375c553["BaseSingleActionAgent"] 17edecaa_ea70_0ca0_a54a_689470a272cb -->|defined in| 2066c331_3189_1880_ba09_f5a3c375c553 3a0359f9_7d00_0224_43fc_5340807a0410["from_llm_and_tools()"] 3a0359f9_7d00_0224_43fc_5340807a0410 -->|calls| 17edecaa_ea70_0ca0_a54a_689470a272cb 3a0359f9_7d00_0224_43fc_5340807a0410["from_llm_and_tools()"] 17edecaa_ea70_0ca0_a54a_689470a272cb -->|calls| 3a0359f9_7d00_0224_43fc_5340807a0410 style 17edecaa_ea70_0ca0_a54a_689470a272cb fill:#6366f1,stroke:#818cf8,color:#fff
Relationship Graph
Source Code
libs/langchain/langchain_classic/agents/agent.py lines 139–157
def from_llm_and_tools(
cls,
llm: BaseLanguageModel,
tools: Sequence[BaseTool],
callback_manager: BaseCallbackManager | None = None,
**kwargs: Any,
) -> BaseSingleActionAgent:
"""Construct an agent from an LLM and tools.
Args:
llm: Language model to use.
tools: Tools to use.
callback_manager: Callback manager to use.
kwargs: Additional arguments.
Returns:
Agent object.
"""
raise NotImplementedError
Domain
Subdomains
Calls
Called By
Source
Frequently Asked Questions
What does from_llm_and_tools() do?
from_llm_and_tools() is a function in the langchain codebase, defined in libs/langchain/langchain_classic/agents/agent.py.
Where is from_llm_and_tools() defined?
from_llm_and_tools() is defined in libs/langchain/langchain_classic/agents/agent.py at line 139.
What does from_llm_and_tools() call?
from_llm_and_tools() calls 1 function(s): from_llm_and_tools.
What calls from_llm_and_tools()?
from_llm_and_tools() is called by 1 function(s): from_llm_and_tools.
Analyze Your Own Codebase
Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.
Try Supermodel Free