langchain.agents.loading.load_agentΒΆ

langchain.agents.loading.load_agent(path: Union[str, Path], **kwargs: Any) Union[BaseSingleActionAgent, BaseMultiActionAgent][source]ΒΆ

[Deprecated] Unified method for loading an agent from LangChainHub or local fs.

Parameters
  • path – Path to the agent file.

  • **kwargs – Additional keyword arguments passed to the agent executor.

  • path – Path to the agent file.

  • **kwargs – Additional keyword arguments passed to the agent executor.

Returns

An agent executor.[Deprecated] Unified method for loading an agent from LangChainHub or local fs.

Returns

An agent executor.

Notes

Deprecated since version 0.1.0.