Azure OpenAI Agent ValueError

Deepika Birthare 20 Reputation points Microsoft Employee
2025-07-05T20:46:13.0566667+00:00

I have created an agent using Azure OpenAI and I am trying to use the OpenApi 3.0 specified tools with Agent. I have a service running in Azure. I want to call that service endpoint from agent. I am using Azure Managed Identity based authentication.

Earlier the implementation was working fine but suddenly it has stopped working with the same OpenAPI specs that I used earlier.

This is the error :

{"id":"call_AXWyK5ekzM66fhE9pwtdFkQ8","type":"openapi","function":{"name":"OpenAPITool_queryService","arguments":"{"question":"What is","scenario":"xyz","chat_history":[],"conversation_id":"testid"}","output":"content_type='system_error' name='ValueError' text="Encountered exception: <class 'ValueError'>.""}}

And this is the doc I followed:https://learn.microsoft.com/en-us/azure/ai-foundry/agents/how-to/tools/openapi-spec-samples?pivots=csharp

Azure AI services
Azure AI services
A group of Azure services, SDKs, and APIs designed to make apps more intelligent, engaging, and discoverable.
{count} votes

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.