Skip to content

Conversation

@opensearch-trigger-bot
Copy link
Contributor

Backport addf057 from #618.

* Add parameter extraction utilities for tool inputs

- Add utilities for extracting required parameters and JSON input parameters
- Apply parameter extraction in AbstractRetrieverTool and RAGTool
- Define TOOL_REQUIRED_PARAMS constant for consistent parameter handling

Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>

* Standardize parameter handling in all Tool implementations

- Update all Tool interface implementations to use extractInputParameters utility

Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>

* Update release note

Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>

* Declare origin of helper method extractInputParameters

Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>

* Remove displaced comment in javadoc

Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>

* Fix failed test in AbstractRetrieverToolTests

Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>

* Replace copied tool utils to library ones

Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>

---------

Signed-off-by: Yuanchun Shen <yuanchu@amazon.com>
(cherry picked from commit addf057)
Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
@zane-neo zane-neo merged commit a7d594e into 3.2 Aug 11, 2025
13 checks passed
@github-actions github-actions bot deleted the backport/backport-618-to-3.2 branch August 11, 2025 02:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants