langchain.agents.load_tools
.load_huggingface_toolΒΆ
- langchain.agents.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 β Task or model repo id.
model_repo_id β Optional model repo id.
token β Optional token.
remote β Optional remote. Defaults to False.
**kwargs β
- Returns
A tool.