Problem
The container deploy path in the azure.ai.agents extension still uses the old agent definition schema:
container_protocol_versions (should be unified to protocol_versions)
- Top-level
image field (should move to container_configuration.image)
The code deploy path already uses the new schema (protocol_versions + code_configuration), so only the container deploy path needs updating.
Affected files
cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_api/models.go - HostedAgentDefinition struct and MarshalJSON/UnmarshalJSON
cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_yaml/map.go - container deploy definition builder
Expected behavior
Container deploy should send:
json { "kind": "hosted", "container_configuration": { "image": "xxx.azurecr.io/..." }, "protocol_versions": [{"protocol": "responses", "version": "1.0.0"}], "cpu": "0.5", "memory": "1Gi" }
Instead of the current:
json { "kind": "hosted", "image": "xxx.azurecr.io/...", "container_protocol_versions": [{"protocol": "responses", "version": "1.0.0"}], "cpu": "0.5", "memory": "1Gi" }
Notes
- Confirm with service team whether old schema is still supported (backward compat) or if this is a breaking change
- May need feature flag coordination if the service hasn't fully rolled out the new schema yet
Problem
The container deploy path in the
azure.ai.agentsextension still uses the old agent definition schema:container_protocol_versions(should be unified toprotocol_versions)imagefield (should move tocontainer_configuration.image)The code deploy path already uses the new schema (
protocol_versions+code_configuration), so only the container deploy path needs updating.Affected files
cli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_api/models.go- HostedAgentDefinition struct and MarshalJSON/UnmarshalJSONcli/azd/extensions/azure.ai.agents/internal/pkg/agents/agent_yaml/map.go- container deploy definition builderExpected behavior
Container deploy should send:
json { "kind": "hosted", "container_configuration": { "image": "xxx.azurecr.io/..." }, "protocol_versions": [{"protocol": "responses", "version": "1.0.0"}], "cpu": "0.5", "memory": "1Gi" }Instead of the current:
json { "kind": "hosted", "image": "xxx.azurecr.io/...", "container_protocol_versions": [{"protocol": "responses", "version": "1.0.0"}], "cpu": "0.5", "memory": "1Gi" }Notes