[BUG] V1 conversational agent with native function calling leaves unresolved tool_descriptions/tool_names in prompt parameter - #4931
Merged
Conversation
…esolved tool_descriptions/tool_names in prompt parameter Resolves opensearch-project#4916 Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
akolarkunnu
requested review from
HenryL27,
Zhangxunmt,
austintlee,
b4sjoo,
jiapingzeng,
mingshl,
model-collapse,
pyek-bot,
rbhavna,
rithinpullela,
sam-herman,
ylwu-amzn and
zane-neo
as code owners
July 24, 2026 10:42
PR Reviewer Guide 🔍(Review updated until commit 6114acd)Here are some key observations to aid the review process:
|
Resolves opensearch-project#4916 Signed-off-by: Abdul Muneer Kolarkunnu <muneer.kolarkunnu@netapp.com>
|
Persistent review updated to latest commit e6172f0 |
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 24, 2026 11:52 — with
GitHub Actions
Failure
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 24, 2026 11:52 — with
GitHub Actions
Failure
akolarkunnu
temporarily deployed
to
ml-commons-cicd-env
July 24, 2026 11:52 — with
GitHub Actions
Inactive
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 24, 2026 11:52 — with
GitHub Actions
Failure
|
Persistent review updated to latest commit 6c369e6 |
akolarkunnu
temporarily deployed
to
ml-commons-cicd-env
July 24, 2026 15:34 — with
GitHub Actions
Inactive
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 24, 2026 15:34 — with
GitHub Actions
Failure
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 24, 2026 15:34 — with
GitHub Actions
Failure
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 24, 2026 15:34 — with
GitHub Actions
Failure
|
Persistent review updated to latest commit ef9f9e0 |
akolarkunnu
temporarily deployed
to
ml-commons-cicd-env
July 25, 2026 03:07 — with
GitHub Actions
Inactive
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 25, 2026 03:07 — with
GitHub Actions
Failure
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 25, 2026 03:07 — with
GitHub Actions
Failure
akolarkunnu
temporarily deployed
to
ml-commons-cicd-env
July 25, 2026 03:07 — with
GitHub Actions
Inactive
|
Persistent review updated to latest commit 6114acd |
akolarkunnu
temporarily deployed
to
ml-commons-cicd-env
July 29, 2026 00:36 — with
GitHub Actions
Inactive
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 29, 2026 00:36 — with
GitHub Actions
Failure
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 29, 2026 00:36 — with
GitHub Actions
Failure
akolarkunnu
temporarily deployed
to
ml-commons-cicd-env
July 29, 2026 00:36 — with
GitHub Actions
Inactive
pyek-bot
approved these changes
Jul 29, 2026
akolarkunnu
temporarily deployed
to
ml-commons-cicd-env
July 29, 2026 05:54 — with
GitHub Actions
Inactive
akolarkunnu
had a problem deploying
to
ml-commons-cicd-env
July 29, 2026 05:54 — with
GitHub Actions
Failure
akolarkunnu
temporarily deployed
to
ml-commons-cicd-env
July 29, 2026 06:30 — with
GitHub Actions
Inactive
akolarkunnu
temporarily deployed
to
ml-commons-cicd-env
July 29, 2026 06:53 — with
GitHub Actions
Inactive
akolarkunnu
temporarily deployed
to
ml-commons-cicd-env
July 29, 2026 06:53 — with
GitHub Actions
Inactive
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Conversational agents using native function calling (tool_template / _tools) no longer leave tool_descriptions and tool_names unset in the LLM predict parameter map. Those keys are initialized to empty strings when not provided explicitly, so connector payload substitution and validation succeed instead of failing with unfilled placeholders.
Fixes agent execution errors such as:
Invalid Request: Some parameter placeholder not filled in payload: tool_descriptions, tool_names
This shows up when building chatbot / Assistant setups (e.g. Bedrock Converse + function calling) where tools are sent via the API rather than the legacy ReAct prompt, but the connector request body still references ${parameters.tool_descriptions} and ${parameters.tool_names}
What changed
In AgentUtils.addToolsToFunctionCalling(), after building _tools, set:
tool_descriptions → "" if missing
tool_names → "" if missing
Explicit values in agent or connector parameters are unchanged (getOrDefault).
Related Issues
Resolves #4916
Check List
--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.