load_agent_from_config#

langchain.agents.loading.load_agent_from_config(config: dict, llm: BaseLanguageModel | None = None, tools: List[Tool] | None = None, **kwargs: Any) BaseSingleActionAgent | BaseMultiActionAgent[source]#

Deprecated since version 0.1.0.

Load agent from Config Dict.

Parameters:
  • config (dict) – Config dict to load agent from.

  • llm (BaseLanguageModel | None) – Language model to use as the agent.

  • tools (List[Tool] | None) – List of tools this agent has access to.

  • kwargs (Any) – Additional keyword arguments passed to the agent executor.

Returns:

An agent executor.

Raises:

ValueError – If agent type is not specified in the config.

Return type:

BaseSingleActionAgent | BaseMultiActionAgent