Skip to content

Commit

Permalink
[8.x] [Simulated function calling] specify that only one tool call ca…
Browse files Browse the repository at this point in the history
…n be performed at a time (#193556) (#193627)

# Backport

This will backport the following commits from `main` to `8.x`:
- [[Simulated function calling] specify that only one tool call can be
performed at a time
(#193556)](#193556)

<!--- Backport version: 9.4.3 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sqren/backport)

<!--BACKPORT [{"author":{"name":"Pierre
Gayvallet","email":"[email protected]"},"sourceCommit":{"committedDate":"2024-09-20T18:07:54Z","message":"[Simulated
function calling] specify that only one tool call can be performed at a
time (#193556)\n\n## Summary\r\n\r\nTitle.\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"374351af564030dc047ea9ef4d780b67b976ac79","branchLabelMapping":{"^v9.0.0$":"main","^v8.16.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","backport:prev-major","Team:Obs
AI Assistant","ci:project-deploy-observability","v8.16.0","Team:AI
Infra"],"title":"[Simulated function calling] specify that only one tool
call can be performed at a
time","number":193556,"url":"https://github.com/elastic/kibana/pull/193556","mergeCommit":{"message":"[Simulated
function calling] specify that only one tool call can be performed at a
time (#193556)\n\n## Summary\r\n\r\nTitle.\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"374351af564030dc047ea9ef4d780b67b976ac79"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/193556","number":193556,"mergeCommit":{"message":"[Simulated
function calling] specify that only one tool call can be performed at a
time (#193556)\n\n## Summary\r\n\r\nTitle.\r\n\r\nCo-authored-by:
Elastic Machine
<[email protected]>","sha":"374351af564030dc047ea9ef4d780b67b976ac79"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Pierre Gayvallet <[email protected]>
  • Loading branch information
kibanamachine and pgayvallet authored Sep 20, 2024
1 parent faff392 commit b16f4e0
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ export function getSystemMessageInstructions({
IMPORTANT: make sure you start and end a tool call with the ${TOOL_USE_START} and ${TOOL_USE_END} markers, it MUST
be included in the tool call.
You can only call A SINGLE TOOL at a time. Do not call multiple tools, or multiple times the same tool, in the same
response.
You may call tools like this:
${TOOL_USE_START}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ export function getSystemMessageInstructions({
IMPORTANT: make sure you start and end a tool call with the ${TOOL_USE_START} and ${TOOL_USE_END} markers, it MUST
be included in the tool call.
You can only call A SINGLE TOOL at a time. Do not call multiple tools, or multiple times the same tool, in the same
response.
You may call tools like this:
${TOOL_USE_START}
Expand Down

0 comments on commit b16f4e0

Please sign in to comment.