Skip to content

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

Merged
dhrubo-os merged 1 commit into3.0from
backport/backport-3755-to-3.0
Apr 28, 2025
Merged

[Backport 3.0] [BUG] Agent Framework: Handle model response when toolUse is not accompanied by text#3783
dhrubo-os merged 1 commit into3.0from
backport/backport-3755-to-3.0

Conversation

@opensearch-trigger-bot
Copy link
Copy Markdown
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 <pybot@amazon.com>

* feat: add test case for parseLLMOutput

Signed-off-by: Pavan Yekbote <pybot@amazon.com>

---------

Signed-off-by: Pavan Yekbote <pybot@amazon.com>
(cherry picked from commit 736bf10)
@codecov
Copy link
Copy Markdown

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