langchain_core.utils.loading
.try_load_from_hubΒΆ
- langchain_core.utils.loading.try_load_from_hub(path: Union[str, Path], loader: Callable[[str], T], valid_prefix: str, valid_suffixes: Set[str], **kwargs: Any) Optional[T] [source]ΒΆ
[Deprecated] Load configuration from hub. Returns None if path is not a hub path.
Notes
Deprecated since version 0.1.30: Using the hwchase17/langchain-hub repo for prompts is deprecated. Please use https://smith.langchain.com/hub instead.
- Parameters
path (Union[str, Path]) β
loader (Callable[[str], T]) β
valid_prefix (str) β
valid_suffixes (Set[str]) β
kwargs (Any) β
- Return type
Optional[T]