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 (Union[str, Path]) – Path to the agent file.

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

Returns

An agent executor.

Return type

Union[BaseSingleActionAgent, BaseMultiActionAgent]

Notes

Deprecated since version 0.1.0.