Repository navigation
feat(admin): add A2A protocol version dropdown to agent form - #4761
Conversation
vishu-bh
left a comment
There was a problem hiding this comment.
Nice improvement, thanks @kimsehwan96 for adding this to both create and edit flows.
One thing I noticed: the edit handler now defaults missing protocol_version to "1.0". That means an existing 0.3 agent could be silently changed back to 1.0 if an older/cached form or another admin form caller submits an edit without this field.
Could we preserve the existing protocol version when the edit form omits protocol_version, instead of defaulting on edit? The create path default to 1.0 makes sense, but update should probably only change the value when the field is explicitly submitted.
|
Hi @kimsehwan96, are you planning to address the review comment and failing CI on this PR? |
97c869f to
5580e31
Compare
|
@vishu-bh Hi, I rebased and applied your opinion about default a2a protocol version. |
| # Defaulting on edit would silently coerce an existing 0.3 agent back | ||
| # to "1.0" for any caller (cached form, scripted PATCH) that omits the field. | ||
| if form.get("protocol_version"): | ||
| agent_update.protocol_version = str(form["protocol_version"]) |
There was a problem hiding this comment.
@vishu-bh When update a2a api was called and if there is no protocol_version parameter in requests then just use as saved value.
If the update API call was made from Admin UI, there must be protocol_version so user's intended value will be submitted. But If the API call was made from script(e.g, curl) without protocol_version parameter then the values will not be modified.
5580e31 to
59d584e
Compare
vishu-bh
left a comment
There was a problem hiding this comment.
Thanks @kimsehwan96 for taking on issue and addressing PR comments.
PR looks solid. LGTM ☘️
Fixes IBM#4760 Signed-off-by: kimsehwan96 <[email protected]> Signed-off-by: Vishu Bhatnagar <[email protected]>
Signed-off-by: Brian Hussey <[email protected]>
40af815 to
b6a51a4
Compare
🔗 Related Issue
Closes #4760
📝 Summary
Adds a Protocol Version selector (
1.0/0.3, default1.0) to the A2A agent create and edit forms in the admin UI.🏷️ Type of Change
🧪 Verification
make lintmake testmake coverageI've done playwright e2e test.
✅ Checklist
make black isort pre-commit)📓 Notes (optional)
AS-IS
TO-BE