fix(a2a-tool): prefer UiPath proxy url over cached agent card url#928
Open
radugheo wants to merge 1 commit into
Open
fix(a2a-tool): prefer UiPath proxy url over cached agent card url#928radugheo wants to merge 1 commit into
radugheo wants to merge 1 commit into
Conversation
f2f23ad to
b6cb2a0
Compare
There was a problem hiding this comment.
Pull request overview
This PR updates the A2A tool’s URL resolution to prefer a UiPath-provided proxy URL (a2a_url) over the cached agent card URL, aligning endpoint selection with agent configuration.
Changes:
- Update
_resolve_a2a_url()to returnconfig.a2a_urlwhen present before falling back tocached_agent_card["url"]. - Adjust the URL-missing error message to no longer reference
cachedAgentCardspecifically.
Comment on lines
158
to
163
| def _resolve_a2a_url(config: AgentA2aResourceConfig) -> str: | ||
| """Resolve the A2A endpoint URL from the cached agent card.""" | ||
| """Resolve the A2A endpoint URL, preferring the UiPath-hosted proxy URL.""" | ||
| if config.a2a_url: | ||
| return config.a2a_url | ||
| if config.cached_agent_card and "url" in config.cached_agent_card: | ||
| return config.cached_agent_card["url"] |
PopescuTudor
approved these changes
Jun 23, 2026
b6cb2a0 to
0e6bf57
Compare
|
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.


Uh oh!
There was an error while loading. Please reload this page.