azure-sdk-for-python: Azure AI Foundry Agent Service Deep Research Tool Error

I have been trying to use the new deep research tool from the preview from the sample code: https://github.com/Azure/azure-sdk-for-python/blob/main/sdk/ai/azure-ai-agents/samples/agents_tools/sample_agents_deep_research.py.

I have already been granted access to the o3-deep-research model from the azure foundry.

I have also installed the prereleased version of azure-ai-projects using: pip install --pre azure-ai-projects

And I have saved all the required environment variables in .env

However, when I run the sample code, I get the following error:

azure.core.exceptions.HttpResponseError: (unsupported_tool) The requested tool 'deep_research' is not supported.
Code: unsupported_tool
Message: The requested tool 'deep_research' is not supported.

About this issue

  • Original URL
  • State: open
  • Created a year ago
  • Reactions: 1
  • Comments: 18 (6 by maintainers)

Most upvoted comments

Hello jhakulin

I have this working now.

the problem I had was that the foundry project itself was not in Norway East or WEST US.

So what I did is:

I created a FOUNDRY resource in Norway East I created a FOUNDRY project, in that foundry resource, in Norway East I deployed gpt4.1 and o3-deep-research, within that project, both models in Norway East. I connected the bing grounding resource to my project

I created a new .venv using python 3.12, and installed the required dependencies with these pip commands:

pip install python-dotenv azure-identity pip install --pre azure-ai-projects

Perhaps we need to clarify that in the documentation, to ensure everything is deployed to either one of the two current regions that support this tool.

Thank you all for your help.

This fixed the issue for me. Thank you!

Hello jhakulin

I have this working now.

the problem I had was that the foundry project itself was not in Norway East or WEST US.

So what I did is:

I created a FOUNDRY resource in Norway East I created a FOUNDRY project, in that foundry resource, in Norway East I deployed gpt4.1 and o3-deep-research, within that project, both models in Norway East. I connected the bing grounding resource to my project

I created a new .venv using python 3.12, and installed the required dependencies with these pip commands:

pip install python-dotenv azure-identity pip install --pre azure-ai-projects

Perhaps we need to clarify that in the documentation, to ensure everything is deployed to either one of the two current regions that support this tool.

Thank you all for your help.

@pietrobr please tell me your pip list outcome for azure-ai-projects and azure-ai-agents? The version of azure-ai-agents (which is used by azure-ai-projects) needs to be the latest beta version (azure-ai-agents == 1.1.0b3)

My Pip List: azure-ai-projects 1.0.0b12 azure-ai-agents 1.1.0b1

I upgraded to azure-ai-agents-1.1.0b3

And now it works! Thanks! I think that the upgrade to this package must be also documented.