langchain_community.agent_toolkits.load_tools
.load_huggingface_toolΒΆ
- langchain_community.agent_toolkits.load_tools.load_huggingface_tool(task_or_repo_id: str, model_repo_id: Optional[str] = None, token: Optional[str] = None, remote: bool = False, **kwargs: Any) BaseTool [source]ΒΆ
Loads a tool from the HuggingFace Hub.
- Parameters
task_or_repo_id (str) β Task or model repo id.
model_repo_id (Optional[str]) β Optional model repo id. Defaults to None.
token (Optional[str]) β Optional token. Defaults to None.
remote (bool) β Optional remote. Defaults to False.
kwargs (Any) β Additional keyword arguments.
- Returns
A tool.
- Raises
ImportError β If the required libraries are not installed.
NotImplementedError β If multimodal outputs or inputs are not supported.
- Return type