Skip to content

fix: persist the AgentCard on Agent Engine update() - #7065

Merged
copybara-service[bot] merged 1 commit into
mainfrom
copybara_962688276
Aug 12, 2026
Merged

fix: persist the AgentCard on Agent Engine update()#7065
copybara-service[bot] merged 1 commit into
mainfrom
copybara_962688276

Conversation

@copybara-service

Copy link
Copy Markdown
Contributor

fix: persist the AgentCard on Agent Engine update()

_create_config wrote spec.agent_card into the update request body without adding it to the update mask, so the server dropped it on the PATCH and an A2A agent's card could never change after the first deployment. Append spec.agent_card to the update mask whenever a card is present.

Fixes #7064

@copybara-service
copybara-service Bot requested a review from a team as a code owner August 11, 2026 10:52
@product-auto-label product-auto-label Bot added size: m Pull request size is medium. api: vertex-ai Issues related to the googleapis/python-aiplatform API. labels Aug 11, 2026
@copybara-service
copybara-service Bot force-pushed the copybara_962688276 branch 5 times, most recently from 99ae3ec to d53e643 Compare August 12, 2026 18:04
`_create_config` wrote `spec.agent_card` into the update request body without adding it to the update mask, so the server dropped it on the PATCH and an A2A agent's card could never change after the first deployment. Append `spec.agent_card` to the update mask whenever a card is present.

Fixes #7064

PiperOrigin-RevId: 963563187
@copybara-service
copybara-service Bot merged commit 5d5a1ca into main Aug 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: vertex-ai Issues related to the googleapis/python-aiplatform API. google-contributor size: m Pull request size is medium.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Agent Engine update() drops the AgentCard: spec.agent_card missing from the update mask

1 participant