Description
After upgrading to Microsoft.Agents.AI 1.0.0 (GA), Azure.AI.AgentServer.AgentFramework 1.0.0-beta.11 throws a TypeLoadException because it still references UserInputRequestContent from Microsoft.Extensions.AI.Abstractions, which was removed/renamed in MEAI 10.4.0.
Related upstream issue: microsoft/agent-framework#5076
Exception
System.TypeLoadException: Could not load type 'Microsoft.Extensions.AI.UserInputRequestContent'
from assembly 'Microsoft.Extensions.AI.Abstractions, Version=10.4.0.0'
Root Cause
The MEAI 10.4.0 release unified several HITL types:
UserInputRequestContent → ToolApprovalRequestContent
UserInputResponseContent → ToolApprovalResponseContent
FunctionApprovalRequestContent → ToolApprovalRequestContent
FunctionApprovalResponseContent → ToolApprovalResponseContent
McpServerToolApprovalRequestContent → ToolApprovalRequestContent
.Id → .RequestId
.FunctionCall → .ToolCall
AgentFramework beta.11 was compiled against the rc3 API surface which references the old types.
Fix
Update Microsoft.Agents.AI* packages from 1.0.0-rc3 to 1.0.0 and adapt all code to the new unified types.