-
Notifications
You must be signed in to change notification settings - Fork 8.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[inference] Add simulated function calling #192544
[inference] Add simulated function calling #192544
Conversation
/ci |
/ci |
…5-the-inevitable-return-of-the-great-simulated-func-call
/ci |
Pinging @elastic/appex-ai-infra (Team:AI Infra) |
const stream = true; | ||
// TODO: remove before merge | ||
const simulatedFunctionCalling = true; // functionCalling === 'simulated'; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
// TODO: remove before merge
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's not a bug, it's a feature
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
forgot a todo there BUT because you're a grown up and will take care of it I approve!
…5-the-inevitable-return-of-the-great-simulated-func-call
💛 Build succeeded, but was flaky
Failed CI StepsMetrics [docs]Async chunks
Public APIs missing exports
Page load bundle
History
To update your PR or re-run it, just comment with: |
## Summary Add simulated function calling to the inference plugin. For now, only the openAI adapter is supported. This is done by adding a new, optional `functionCalling` parameter to the chat and task APIs Implementation was adapted from the equivalent feature in the o11y assistant. --------- Co-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co> (cherry picked from commit 181d617)
💚 All backports created successfully
Note: Successful backport PRs will be merged automatically after passing CI. Questions ?Please refer to the Backport tool documentation |
# Backport This will backport the following commits from `main` to `8.x`: - [[inference] Add simulated function calling (#192544)](#192544) <!--- Backport version: 9.4.3 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sqren/backport) <!--BACKPORT [{"author":{"name":"Pierre Gayvallet","email":"pierre.gayvallet@elastic.co"},"sourceCommit":{"committedDate":"2024-09-18T10:42:28Z","message":"[inference] Add simulated function calling (#192544)\n\n## Summary\r\n\r\nAdd simulated function calling to the inference plugin. For now, only\r\nthe openAI adapter is supported. This is done by adding a new, optional\r\n`functionCalling` parameter to the chat and task APIs\r\n\r\nImplementation was adapted from the equivalent feature in the o11y\r\nassistant.\r\n\r\n---------\r\n\r\nCo-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>","sha":"181d61723136084ec57801fab1cc99457c047977","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-minor","Team:Obs AI Assistant","ci:project-deploy-observability","v8.16.0","Team:AI Infra"],"title":"[inference] Add simulated function calling ","number":192544,"url":"https://github.com/elastic/kibana/pull/192544","mergeCommit":{"message":"[inference] Add simulated function calling (#192544)\n\n## Summary\r\n\r\nAdd simulated function calling to the inference plugin. For now, only\r\nthe openAI adapter is supported. This is done by adding a new, optional\r\n`functionCalling` parameter to the chat and task APIs\r\n\r\nImplementation was adapted from the equivalent feature in the o11y\r\nassistant.\r\n\r\n---------\r\n\r\nCo-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>","sha":"181d61723136084ec57801fab1cc99457c047977"}},"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/192544","number":192544,"mergeCommit":{"message":"[inference] Add simulated function calling (#192544)\n\n## Summary\r\n\r\nAdd simulated function calling to the inference plugin. For now, only\r\nthe openAI adapter is supported. This is done by adding a new, optional\r\n`functionCalling` parameter to the chat and task APIs\r\n\r\nImplementation was adapted from the equivalent feature in the o11y\r\nassistant.\r\n\r\n---------\r\n\r\nCo-authored-by: Dario Gieselaar <dario.gieselaar@elastic.co>","sha":"181d61723136084ec57801fab1cc99457c047977"}},{"branch":"8.x","label":"v8.16.0","branchLabelMappingKey":"^v8.16.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Pierre Gayvallet <pierre.gayvallet@elastic.co>
Summary
Add simulated function calling to the inference plugin. For now, only the openAI adapter is supported. This is done by adding a new, optional
functionCalling
parameter to the chat and task APIsImplementation was adapted from the equivalent feature in the o11y assistant.