Skip to content

[Hosted Agents] TypeLoadException: UserInputRequestContent not found after Microsoft.Agents.AI 1.0.0 upgrade #57776

@rogerbarreto

Description

@rogerbarreto

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:

  • UserInputRequestContentToolApprovalRequestContent
  • UserInputResponseContentToolApprovalResponseContent
  • FunctionApprovalRequestContentToolApprovalRequestContent
  • FunctionApprovalResponseContentToolApprovalResponseContent
  • McpServerToolApprovalRequestContentToolApprovalRequestContent
  • .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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    ClientThis issue is related to a non-management packageHosted Agents

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions