Repository navigation
Description
Description
on the guide https://learn.microsoft.com/en-us/agent-framework/agents/providers/azure-openai?pivots=programming-language-csharp is present example code which describe is recommended use Responses. this is the example :
AzureOpenAIClient client = new AzureOpenAIClient(
new Uri("https://.openai.azure.com"),
new DefaultAzureCredential());
var responsesClient = client.GetResponseClient("gpt-4o-mini");
AIAgent agent = responsesClient.AsAIAgent(
instructions: "You are a helpful coding assistant.",
name: "CodeHelper");
Console.WriteLine(await agent.RunAsync("Write a Python function to sort a list."));
But the method GetResponseClient is not present but only GetResponsesClient without arguments
Code Sample
AzureOpenAIClient client = new AzureOpenAIClient(
new Uri("https://<myresource>.openai.azure.com"),
new DefaultAzureCredential());
var responsesClient = client.GetResponseClient("gpt-4o-mini");
AIAgent agent = responsesClient.AsAIAgent(
instructions: "You are a helpful coding assistant.",
name: "CodeHelper");
Console.WriteLine(await agent.RunAsync("Write a Python function to sort a list."));Error Messages / Stack Traces
not definition present for GetResponseClientPackage Versions
Azure.AI.OpenAI Version="2.9.0-beta.1" Azure.Identity" Version="1.21.0" Microsoft.Agents.AI.OpenAI Version="1.9.0"
.NET Version
NET 10
Additional Context
No response
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-].NET: [Bug]: missing method GetResponseClient[/-][+]Python: .NET: [Bug]: missing method GetResponseClient[/+]github-actions commentedon Jun 8, 2026
🤖 Automated triage reproduction notes (agent-authored — trust but verify)
Agent analysis
The external Microsoft Learn documentation at https://learn.microsoft.com/en-us/agent-framework/agents/providers/azure-openai shows
client.GetResponseClient("gpt-4o-mini")but the correct API (used in all repo samples like dotnet/samples/02-agents/AgentProviders/Agent_With_AzureOpenAIResponses/Program.cs) isclient.GetResponsesClient().AsAIAgent(model: "gpt-4o-mini", ...). The docs source for this page is not in this repository; the fix requires updating the learn.microsoft.com content to use the plural method name without arguments and pass the model to AsAIAgent instead.none1.9.01.9.0[-]Python: .NET: [Bug]: missing method GetResponseClient[/-][+].NET: [Bug]: missing method GetResponseClient[/+]Fix GetResponseClient → GetResponsesClient in Azure OpenAI and OpenAI…