Code
huggingface_tool_use.py
Usage
1
Set up your virtual environment
2
Set your API key
3
Install dependencies
4
Save the example
Save the code above as
huggingface_tool_use.py.5
Run Agent
Give a HuggingFace agent web search with WebSearchTools.
Set up your virtual environment
Set your API key
Install dependencies
Save the example
huggingface_tool_use.py.Run Agent