Skip to content

Python: [Bug]: Unsupported responses protocol version in agent-framework-foundry-hosting #5532

@mitokic

Description

@mitokic

Describe the bug

When deploying a hosted agent using agent-framework-foundry-hosting==1.0.0a260424 (released with agent-framework 1.2.0), the Foundry platform proxy rejects all requests with:

bad_request Unsupported responses protocol version. Please use version '1.0.0'.

The underlying cause is that azure-ai-agentserver-core==2.0.0b3 (a dependency of agent-framework-foundry-hosting) reports its version in the x-platform-server response header as azure-ai-agentserver-core/2.0.0b3. The Foundry platform proxy only accepts the 1.0.0 format (single-segment, e.g. azure-ai-agentserver-core/1.0.0 (python/3.12)).

This issue existed in the previous release (azure-ai-agentserver-core==2.0.0b2 with agent-framework-foundry-hosting>=1.0.0a1) and was not resolved in the 1.2.0 upgrade (PR #5459).

To Reproduce

  1. Build a hosted agent container using agent-framework-foundry-hosting==1.0.0a260424
  2. Deploy to Azure AI Foundry Agent Service via AIProjectClient.agents.create_version() with container_protocol_versions=[ProtocolVersionRecord(protocol=AgentProtocol.RESPONSES, version="v1")]
  3. Start the agent and invoke it via SDK or Foundry Chat UI
  4. Every request returns: bad_request Unsupported responses protocol version. Please use version '1.0.0'.

Expected behavior

The ResponsesHostServer should emit an x-platform-server header value that the Foundry platform proxy accepts (version 1.0.0), without requiring consumer-side monkey-patching.

Package Versions

agent-framework: 1.2.0, agent-framework-foundry-hosting: 1.0.0a260424, azure-ai-agentserver-core: 2.0.0b3, azure-ai-agentserver-responses: 1.0.0b5

Python Version

Python 3.12

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingpython

Type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions