load_chain#

langchain.chains.loading.load_chain(path: str | Path, **kwargs: Any) Chain[source]#

Deprecated since version 0.2.13: This function is deprecated and will be removed in langchain 1.0. At that point chains must be imported from their respective modules.

Unified method for loading a chain from LangChainHub or local fs.

Parameters:
  • path (str | Path)

  • kwargs (Any)

Return type:

Chain