LangChain Reference home pageLangChain ReferenceLangChain Reference
  • GitHub
  • Main Docs
Deep Agents
LangChain
LangGraph
Integrations
LangSmith
  • Overview
  • MCP Adapters
    Standard Tests
    Text Splitters
    • Overview
    • Agents
    • Callbacks
    • Chains
    • Chat models
    • Embeddings
    • Evaluation
    • Globals
    • Hub
    • Memory
    • Output parsers
    • Retrievers
    • Runnables
    • LangSmith
    • Storage
    ⌘I

    LangChain Assistant

    Ask a question to get started

    Enter to send•Shift+Enter new line

    Menu

    MCP Adapters
    Standard Tests
    Text Splitters
    OverviewAgentsCallbacksChainsChat modelsEmbeddingsEvaluationGlobalsHubMemoryOutput parsersRetrieversRunnablesLangSmithStorage
    Language
    Theme
    Pythonlangchain-classicagentsloadingload_agent_from_config
    Functionā—Since v1.0Deprecated

    load_agent_from_config

    Copy
    load_agent_from_config(
      config: dict,
      llm: BaseLanguageModel | None = None,
      tools: list
    View source on GitHub
    [
    Tool
    ]
    |
    None
    =
    None
    ,
    **
    kwargs
    :
    Any
    =
    {
    }
    )
    ->
    BaseSingleActionAgent
    |
    BaseMultiActionAgent

    Parameters

    NameTypeDescription
    config*dict

    Config dict to load agent from.

    llmBaseLanguageModel | None
    Default:None

    Language model to use as the agent.

    toolslist[Tool] | None
    Default:None
    kwargsAny
    Default:{}

    Load agent from Config Dict.

    List of tools this agent has access to.

    Additional keyword arguments passed to the agent executor.