Skip to content

[Backport 3.0] [BUG] Agent Framework: Handle model response when toolUse is not accompanied by text #3783

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

Merged
merged 1 commit into from
Apr 28, 2025

Conversation

opensearch-trigger-bot[bot]
Copy link
Contributor

Backport 736bf10 from #3755

…mpanied by text (#3755)

* fix: handle model response when toolUse is not accompanied by text

Signed-off-by: Pavan Yekbote <[email protected]>

* feat: add test case for parseLLMOutput

Signed-off-by: Pavan Yekbote <[email protected]>

---------

Signed-off-by: Pavan Yekbote <[email protected]>
(cherry picked from commit 736bf10)
Copy link

codecov bot commented Apr 26, 2025

Codecov Report

Attention: Patch coverage is 85.71429% with 1 line in your changes missing coverage. Please review.

Project coverage is 78.19%. Comparing base (6c5c580) to head (1a2df6c).
Report is 2 commits behind head on 3.0.

Files with missing lines Patch % Lines
...nsearch/ml/engine/algorithms/agent/AgentUtils.java 85.71% 0 Missing and 1 partial ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##                3.0    #3783      +/-   ##
============================================
+ Coverage     78.06%   78.19%   +0.13%     
- Complexity     7111     7117       +6     
============================================
  Files           626      626              
  Lines         32073    32078       +5     
  Branches       3647     3647              
============================================
+ Hits          25037    25083      +46     
+ Misses         5489     5446      -43     
- Partials       1547     1549       +2     
Flag Coverage Δ
ml-commons 78.19% <85.71%> (+0.13%) ⬆️

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.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@dhrubo-os dhrubo-os merged commit 6a1c7eb into 3.0 Apr 28, 2025
12 of 13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants