Code
tool_use.py
Usage
1
Set up your virtual environment
2
Set your Portkey API key
3
Install dependencies
4
Set the model ID
Replace
@your-provider-slug/gpt-5-nano with a model string from your Portkey Model Catalog. Portkey model strings use the format @provider_slug/model_name.5
Run the agent
Save the code above as
tool_use.py, then run: