kibana/x-pack/plugins/inference/common
Kibana Machine c8043c9a9c
[8.x] [inference] Add simulated function calling (#192544) (#193275)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[inference] Add simulated function calling
(#192544)](https://github.com/elastic/kibana/pull/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>
2024-09-18 07:17:27 -05:00
..
chat_complete [8.x] [inference] Add simulated function calling (#192544) (#193275) 2024-09-18 07:17:27 -05:00
output [8.x] [inference] Add simulated function calling (#192544) (#193275) 2024-09-18 07:17:27 -05:00
tasks/nl_to_esql [Inference] Implement NL-to-ESQL task (#190433) 2024-09-04 18:30:40 +02:00
util [Inventory] Inventory plugin (#191798) 2024-09-12 15:07:09 +02:00
connectors.ts
ensure_multi_turn.ts [Inference] Implement NL-to-ESQL task (#190433) 2024-09-04 18:30:40 +02:00
errors.ts [Inference] Implement NL-to-ESQL task (#190433) 2024-09-04 18:30:40 +02:00
index.ts [Inference] Implement NL-to-ESQL task (#190433) 2024-09-04 18:30:40 +02:00
inference_task.ts [Inference] Implement NL-to-ESQL task (#190433) 2024-09-04 18:30:40 +02:00