Skip to content
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

[8.x] [inference] Add simulated function calling (#192544) #193275

Merged
merged 1 commit into from
Sep 18, 2024

Conversation

kibanamachine
Copy link
Contributor

Backport

This will backport the following commits from main to 8.x:

Questions ?

Please refer to the Backport tool documentation

## 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 <[email protected]>
(cherry picked from commit 181d617)
@kibana-ci
Copy link
Collaborator

💛 Build succeeded, but was flaky

Failed CI Steps

Metrics [docs]

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
observabilityAIAssistantApp 154.3KB 154.3KB +64.0B

Public APIs missing exports

Total count of every type that is part of your API that should be exported but is not. This will cause broken links in the API documentation system. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats exports for more detailed information.

id before after diff
inference 14 15 +1

Page load bundle

Size of the bundles that are downloaded on every page load. Target size is below 100kb

id before after diff
inference 5.7KB 5.8KB +92.0B

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

cc @pgayvallet

@kibanamachine kibanamachine merged commit c8043c9 into elastic:8.x Sep 18, 2024
25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants