Description
We have a hosted agent running in Azure Foundry. Today, we upgraded the agent to the RC version. After the deployment, when we try to chat with the agent using the chat interface in Foundry portal, we are getting this error:
Error Could not load type 'Microsoft.Agents.AI.AgentRunResponseUpdate' from assembly 'Microsoft.Agents.AI.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f300afd708cefcd3'.
We have seen this error in previous versions as well. The only version which worked for us was Microsoft.Agents.AI version 1.0.0-preview.260108.1.
This is not the limitation in just the Chat UI. If we use Azure.AI.Projects SDK to chat with the agent, we are getting the same error.
Here are all the packages we are using:
<PackageReference Include="Azure.AI.AgentServer.AgentFramework" Version="1.0.0-beta.8" />
<PackageReference Include="Azure.AI.OpenAI" Version="2.8.0-beta.1" />
<PackageReference Include="Azure.Identity" Version="1.18.0-beta.2" />
<PackageReference Include="Microsoft.Agents.AI" Version="1.0.0-rc1" />
<PackageReference Include="Microsoft.Agents.AI.DevUI" Version="1.0.0-preview.260219.1" />
<PackageReference Include="Microsoft.Agents.AI.OpenAI" Version="1.0.0-rc1" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="3.0.0" />
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.2" />
<PackageReference Include="Microsoft.Extensions.Hosting" Version="10.0.2" />
<!-- Use versions compatible with ApplicationInsights -->
<PackageReference Include="OpenTelemetry" Version="1.15.0" />
<PackageReference Include="OpenTelemetry.Exporter.Console" Version="1.15.0" />
<PackageReference Include="OpenTelemetry.Exporter.OpenTelemetryProtocol" Version="1.15.0" />
<PackageReference Include="OpenTelemetry.Extensions.Hosting" Version="1.15.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.AspNetCore" Version="1.15.0" />
<PackageReference Include="OpenTelemetry.Instrumentation.Http" Version="1.15.0" />
<PackageReference Include="System.Diagnostics.DiagnosticSource" Version="10.0.3" />
Code Sample
var openAIClient = new AzureOpenAIClient(new Uri(endpoint), new DefaultAzureCredential());
#pragma warning disable OPENAI001 // Suppress warning for AsAIAgent usage
var responseClient = openAIClient.GetResponsesClient(deploymentName);
var agent = responseClient.AsAIAgent(
instructions: "You are a helpful assistant that helps users with their queries.",
name: "MyAwesomeAgent",
description: "An AI agent that helps users with their queries."
);
await agent.RunAIAgentAsync(telemetrySourceName: "MyAwesomeAgent");
Error Messages / Stack Traces
Error Could not load type 'Microsoft.Agents.AI.AgentRunResponseUpdate' from assembly 'Microsoft.Agents.AI.Abstractions, Version=1.0.0.0, Culture=neutral, PublicKeyToken=f300afd708cefcd3'.
Package Versions
Microsoft.Agents.AI (1.0.0-rc1), Microsoft.Agents.AI.OpenAI (1.0.0-rc1)
.NET Version
.Net 8
Additional Context
As mentioned above, only SDK version that worked for us was 1.0.0-preview.260108.1. I noticed that this version was the last version that had AgentRunResponseUpdate class in there. After that it was removed.
Description
We have a hosted agent running in Azure Foundry. Today, we upgraded the agent to the RC version. After the deployment, when we try to chat with the agent using the chat interface in Foundry portal, we are getting this error:
We have seen this error in previous versions as well. The only version which worked for us was
Microsoft.Agents.AI version 1.0.0-preview.260108.1.This is not the limitation in just the Chat UI. If we use
Azure.AI.ProjectsSDK to chat with the agent, we are getting the same error.Here are all the packages we are using:
Code Sample
Error Messages / Stack Traces
Package Versions
Microsoft.Agents.AI (1.0.0-rc1), Microsoft.Agents.AI.OpenAI (1.0.0-rc1)
.NET Version
.Net 8
Additional Context
As mentioned above, only SDK version that worked for us was
1.0.0-preview.260108.1. I noticed that this version was the last version that hadAgentRunResponseUpdateclass in there. After that it was removed.