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

parse tool input to map #2131

Merged
merged 1 commit into from
Feb 20, 2024
Merged

parse tool input to map #2131

merged 1 commit into from
Feb 20, 2024

Conversation

ylwu-amzn
Copy link
Collaborator

Description

Chat agent runner will pass a string input json to tool , for example "{'detectorName': 'abc', 'indices': 'sample-data' }", then the tool side need to parse the json string to Map, for example PPLTool.

This PR parse the tool input json string to Map and put the parameters to tool's parameter map.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --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.

Signed-off-by: Yaliang Wu <ylwu@amazon.com>
Copy link

codecov bot commented Feb 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (3b162db) 81.86% compared to head (d48a651) 81.86%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #2131      +/-   ##
============================================
- Coverage     81.86%   81.86%   -0.01%     
- Complexity     5644     5658      +14     
============================================
  Files           543      543              
  Lines         22790    22856      +66     
  Branches       2333     2348      +15     
============================================
+ Hits          18658    18711      +53     
- Misses         3195     3206      +11     
- Partials        937      939       +2     
Flag Coverage Δ
ml-commons 81.86% <100.00%> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@ylwu-amzn ylwu-amzn temporarily deployed to ml-commons-cicd-env February 19, 2024 20:01 — with GitHub Actions Inactive
@ylwu-amzn ylwu-amzn temporarily deployed to ml-commons-cicd-env February 19, 2024 20:01 — with GitHub Actions Inactive
@ylwu-amzn ylwu-amzn temporarily deployed to ml-commons-cicd-env February 19, 2024 20:01 — with GitHub Actions Inactive
@ylwu-amzn ylwu-amzn merged commit 235fb9c into opensearch-project:main Feb 20, 2024
14 of 15 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Feb 20, 2024
Signed-off-by: Yaliang Wu <ylwu@amazon.com>
(cherry picked from commit 235fb9c)
dhrubo-os pushed a commit that referenced this pull request Feb 20, 2024
Signed-off-by: Yaliang Wu <ylwu@amazon.com>
(cherry picked from commit 235fb9c)

Co-authored-by: Yaliang Wu <ylwu@amazon.com>
austintlee pushed a commit to austintlee/ml-commons that referenced this pull request Mar 19, 2024
Signed-off-by: Yaliang Wu <ylwu@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.

4 participants