Code
tool_use.py
Usage
1
Set up your virtual environment
2
Create the model deployment
In your classic Foundry project, deploy Cohere Command A with the deployment name
Cohere-command-a. If you choose another deployment name, pass that exact name to AzureAIFoundry(id=...).3
Set your API key
4
Install dependencies
5
Run Agent
Save the code above as
tool_use.py, then run: