Skip to content
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

Expose ML Config API #2850

Merged
merged 2 commits into from
Aug 28, 2024
Merged

Conversation

lezzago
Copy link
Member

@lezzago lezzago commented Aug 27, 2024

Description

Expose ML Config API

Related Issues

N/A

Check List

  • New functionality includes testing.
  • New functionality has been documented.
  • API changes companion pull request created.
  • Commits are signed per the DCO using --signoff.
  • Public documentation issue/PR created.

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.

Signed-off-by: Ashish Agrawal <[email protected]>
@b4sjoo
Copy link
Collaborator

b4sjoo commented Aug 28, 2024

@lezzago Hi can I know why we are going to store agent info in config index?

@@ -951,6 +959,26 @@ public void listTools() {
assertEquals("Use this tool to search general knowledge on wikipedia.", argumentCaptor.getValue().get(0).getDescription());
}

@Test
public void getConfig() {
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we add a test for MASTER_KEY showing that its getting rejected?

@lezzago
Copy link
Member Author

lezzago commented Aug 28, 2024

@lezzago Hi can I know why we are going to store agent info in config index?

This is already being used for the os_query_assist_ppl agent. We are doing this for the front end to see the newly configured agents for the different usecase and they can use this api to get the correct agent for that use case.

@lezzago lezzago had a problem deploying to ml-commons-cicd-env August 28, 2024 15:53 — with GitHub Actions Failure
@lezzago lezzago had a problem deploying to ml-commons-cicd-env August 28, 2024 15:53 — with GitHub Actions Failure
@lezzago lezzago temporarily deployed to ml-commons-cicd-env August 28, 2024 17:34 — with GitHub Actions Inactive
@lezzago lezzago temporarily deployed to ml-commons-cicd-env August 28, 2024 18:44 — with GitHub Actions Inactive
@dhrubo-os dhrubo-os merged commit 05eb53f into opensearch-project:main Aug 28, 2024
6 of 7 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Aug 28, 2024
* Expose ML Config API

Signed-off-by: Ashish Agrawal <[email protected]>

* Add tests for rejected master key

Signed-off-by: Ashish Agrawal <[email protected]>

---------

Signed-off-by: Ashish Agrawal <[email protected]>
(cherry picked from commit 05eb53f)
dhrubo-os pushed a commit that referenced this pull request Aug 29, 2024
* Expose ML Config API

Signed-off-by: Ashish Agrawal <[email protected]>

* Add tests for rejected master key

Signed-off-by: Ashish Agrawal <[email protected]>

---------

Signed-off-by: Ashish Agrawal <[email protected]>
(cherry picked from commit 05eb53f)

Co-authored-by: Ashish Agrawal <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants