fix: accept remoteA2aAgent in GenericResourceOverwrite#1581
Merged
PopescuTudor merged 2 commits intomainfrom Apr 21, 2026
Merged
fix: accept remoteA2aAgent in GenericResourceOverwrite#1581PopescuTudor merged 2 commits intomainfrom
PopescuTudor merged 2 commits intomainfrom
Conversation
Solutions with Remote A2A agent resources send down runtime overwrites keyed by 'remoteA2aAgent.<name>[.<folder>]'. The discriminated union in ResourceOverwriteParser rejected the unknown tag, failing Pydantic validation of the whole overwrite batch and preventing the agent from starting with a 'union_tag_invalid' error. Extend the Literal to include 'remoteA2aAgent' (same shape as other generic name+folderPath overwrites). Bumps uipath-platform to 0.1.33. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
radugheo
approved these changes
Apr 21, 2026
Missed in previous commit. CI failed with --locked mismatch. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds
remoteA2aAgentto the acceptedresource_typetags ofGenericResourceOverwrite. Unblocks agents that reference Remote A2A resources — they currently fail to start in Alpha with a Pydanticunion_tag_invaliderror.Root cause
Solutions containing Remote A2A resources emit runtime overwrites keyed by
remoteA2aAgent.<name>[.<folder>](see AgentHubServiceKind.RemoteA2aAgent→ serialized as camelCaseremoteA2aAgent). At agent startup the runtime deserializes the overwrite map viaResourceOverwriteParser.parse, which validates each entry against the discriminated unionResourceOverwriteUnion.The parser extracts
remoteA2aAgentas the discriminator but theGenericResourceOverwrite.resource_typeLiteral only listedprocess | index | app | asset | bucket | mcpServer | queue. Pydantic rejects the tag → the whole overwrite batch fails → agent never starts.Observed error (from Alpha job logs):
Fix
Extend the Literal with
"remoteA2aAgent". Remote A2A overwrites have the samename+folderPathshape as other generic resources, so no dedicated subclass is needed.Bumps
uipath-platformto0.1.33.What was missing from the original rollout
Remote A2A support was added across the stack —
AgentA2aResourceConfig(agent.json authoring),a2a_tool.pyinuipath-langchain-python, the langgraph wiring inuipath-agents-python, and the CRUD + proxy endpoints inAgentHubService. This overwrite binding was the one gap: the parser is the gate every agent runtime passes through at startup, regardless of whether the A2A code itself uses the override today.Test plan
TestRemoteA2aAgentResourceOverwritecovers:GenericResourceOverwrite(resource_type="remoteA2aAgent", ...)constructionResourceOverwriteParser.parse(key="remoteA2aAgent.basica2a.solution_folder", ...)roundtripuipathtest suite: 1786 passed, 0 failuresunion_tag_invaliderrorLinks
Observed in Alpha against low-code agent
2d2417eb-881b-4828-9018-f9eb7683c5dcwith an A2A resourcebasica2a(externala2a-test-agent-192161339979.us-central1.run.app).