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
- Build a hosted agent container using
agent-framework-foundry-hosting==1.0.0a260424
- Deploy to Azure AI Foundry Agent Service via
AIProjectClient.agents.create_version() with container_protocol_versions=[ProtocolVersionRecord(protocol=AgentProtocol.RESPONSES, version="v1")]
- Start the agent and invoke it via SDK or Foundry Chat UI
- 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
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:The underlying cause is that
azure-ai-agentserver-core==2.0.0b3(a dependency ofagent-framework-foundry-hosting) reports its version in thex-platform-serverresponse header asazure-ai-agentserver-core/2.0.0b3. The Foundry platform proxy only accepts the1.0.0format (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.0b2withagent-framework-foundry-hosting>=1.0.0a1) and was not resolved in the 1.2.0 upgrade (PR #5459).To Reproduce
agent-framework-foundry-hosting==1.0.0a260424AIProjectClient.agents.create_version()withcontainer_protocol_versions=[ProtocolVersionRecord(protocol=AgentProtocol.RESPONSES, version="v1")]bad_request Unsupported responses protocol version. Please use version '1.0.0'.Expected behavior
The
ResponsesHostServershould emit anx-platform-serverheader value that the Foundry platform proxy accepts (version1.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