-
Notifications
You must be signed in to change notification settings - Fork 159
Expose Update Agent API #3820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Expose Update Agent API #3820
Conversation
Signed-off-by: Jiaping Zeng <[email protected]>
Signed-off-by: Jiaping Zeng <[email protected]>
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3820 +/- ##
============================================
+ Coverage 77.98% 78.10% +0.12%
- Complexity 7316 7386 +70
============================================
Files 655 660 +5
Lines 33037 33290 +253
Branches 3708 3741 +33
============================================
+ Hits 25764 26002 +238
- Misses 5688 5692 +4
- Partials 1585 1596 +11
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Signed-off-by: Jiaping Zeng <[email protected]>
plugin/src/main/java/org/opensearch/ml/action/agents/UpdateAgentTransportAction.java
Outdated
Show resolved
Hide resolved
@jiapingzeng Are users allowed to update all fields within an agent, or are there any restrictions? |
Users can update all fields within an agent. However the request body must be a valid |
Signed-off-by: Jiaping Zeng <[email protected]>
Hmm, this is more like a new agent creation. Regarding |
We have hidden agent, which admin/any other user can't update. So we need to check that condition. Please check update model api and you will get the idea |
I am making a GET call first to check on the existing agent, if it is a hidden agent, a 403 will be returned for non-superadmins ml-commons/plugin/src/main/java/org/opensearch/ml/action/agents/UpdateAgentTransportAction.java Lines 118 to 128 in 5acd28c
|
Signed-off-by: Jiaping Zeng <[email protected]>
Signed-off-by: Jiaping Zeng <[email protected]>
@jngz-es I decoupled the request input from |
Description
Exposes Agent Update API
Related Issues
Resolves #3748 #2172
Check List
--signoff
.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.