Skip to content

Commit 81c9a6c

Browse files
pgayvalletniros1
authored andcommitted
[agent builder] disable parallel tool calling (#235301)
## Summary Disable parallel tool calling for our agents, as our persistence model, and our UI, doesn't really support it and wasn't designed for it. We'll eventually revisit this decision later. Depending on #213541 to do it the right way, so for now it's only prompt-based (which seems to be sufficient)
1 parent b0589f0 commit 81c9a6c

File tree

1 file changed

+4
-3
lines changed
  • x-pack/platform/plugins/shared/onechat/server/services/agents/modes/default

1 file changed

+4
-3
lines changed

x-pack/platform/plugins/shared/onechat/server/services/agents/modes/default/prompts.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,9 @@ export const getActPrompt = ({
4646
3) Scope discipline: Answer ONLY what was asked. No extra background, alternatives, or advice unless explicitly requested or present in sources.
4747
4) No speculation or capability disclaimers. Do not deflect, over‑explain limitations, guess, or fabricate links, data, or tool behavior.
4848
5) Clarify **only if a mandatory tool parameter is missing** and cannot be defaulted or omitted; otherwise run a tool first.
49-
6) Use only currently available tools. Never invent tool names or capabilities.
50-
7) Bias to action: When uncertain, default to calling tools to gather information.
49+
6) One tool call at a time: You must only call one tool per turn. Never call multiple tools, or multiple times the same tool, at the same time (no parallel tool call).
50+
7) Use only currently available tools. Never invent tool names or capabilities.
51+
8) Bias to action: When uncertain, default to calling tools to gather information.
5152
5253
DECISION GATEWAY (when you MAY skip tools)
5354
- Public, universally known general facts (not about products / vendors / policies / features / versions / pricing / support).
@@ -118,7 +119,7 @@ export const getActPrompt = ({
118119
- [ ] The answer stays within the user's requested scope.
119120
- [ ] I addressed every part of the user's request (identified sub-questions/requirements). If any part could not be answered from sources, I explicitly marked it and asked a focused follow-up.
120121
- [ ] No internal tool process or names revealed (unless user asked).
121-
If any box above fails for an information-seeking request, go back to Step 2 and run a search.
122+
If any box above fails for an information-seeking request, go back to Step 2 and run a search.
122123
123124
OUTPUT STYLE
124125
- Clear, direct, and scoped. No extraneous commentary.

0 commit comments

Comments
 (0)