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

CreateAnomalyDetectorTool supports empty model_type #457

Merged
merged 3 commits into from
Nov 14, 2024

Conversation

gaobinlong
Copy link
Contributor

@gaobinlong gaobinlong commented Nov 1, 2024

Description

Same to the PPLTool, CreateAnomalyDetectorTool should also support empty model_type parameter, rather than throwing an IllegalArgumentException, we need to make the behavior consistent between the tools.

Related Issues

No issue.

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: gaobinlong <gbinlong@amazon.com>
Signed-off-by: gaobinlong <gbinlong@amazon.com>
Signed-off-by: gaobinlong <gbinlong@amazon.com>
Copy link
Member

@yuye-aws yuye-aws left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@yuye-aws
Copy link
Member

yuye-aws commented Nov 1, 2024

Flakey tests coming from RAG Tool IT. Can @mingshl take a look?

@yuye-aws
Copy link
Member

@gaobinlong Can you check the comment here #452 (comment)? You can update the PR after Heng's PR gets merged.

@zane-neo zane-neo merged commit cfc88d8 into opensearch-project:main Nov 14, 2024
7 of 8 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Nov 14, 2024
* CreateAnomalyDetectorTool supports empty model_type

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Optimize code

Signed-off-by: gaobinlong <gbinlong@amazon.com>

* Add some comment

Signed-off-by: gaobinlong <gbinlong@amazon.com>

---------

Signed-off-by: gaobinlong <gbinlong@amazon.com>
(cherry picked from commit cfc88d8)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
zane-neo added a commit that referenced this pull request Nov 14, 2024
* CreateAnomalyDetectorTool supports empty model_type



* Optimize code



* Add some comment



---------


(cherry picked from commit cfc88d8)

Signed-off-by: gaobinlong <gbinlong@amazon.com>
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: zane-neo <zaniu@amazon.com>
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.

3 participants