Skip to content

[8.x] [Inference] Inference CLI client (#214691)#216202

Merged
dgieselaar merged 2 commits intoelastic:8.xfrom
dgieselaar:backport/8.x/pr-214691
Mar 27, 2025
Merged

[8.x] [Inference] Inference CLI client (#214691)#216202
dgieselaar merged 2 commits intoelastic:8.xfrom
dgieselaar:backport/8.x/pr-214691

Conversation

@dgieselaar
Copy link
Contributor

Backport

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

Questions ?

Please refer to the Backport tool documentation

Exposes an Inference (plugin) API client for scripts, that mimicks the
`chatComplete` and `output` APIs that are available on its start
contract. It depends on the KibanaClient that is exposed from the
`@kbn/kibana-api-cli` package. It automatically selects a connector if
available.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit 70f1880)

# Conflicts:
#	.github/CODEOWNERS
@dgieselaar dgieselaar added the backport This PR is a backport of another PR label Mar 27, 2025
@dgieselaar dgieselaar enabled auto-merge (squash) March 27, 2025 15:59
@botelastic botelastic bot added the Team:Obs AI Assistant Observability AI Assistant label Mar 27, 2025
@elasticmachine
Copy link
Contributor

Pinging @elastic/obs-ai-assistant (Team:Obs AI Assistant)

@dgieselaar dgieselaar merged commit d48afc8 into elastic:8.x Mar 27, 2025
8 checks passed
@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
inference 34 38 +4
observabilityAIAssistantApp 422 426 +4
observabilityAiAssistantManagement 382 386 +4
searchAssistant 263 267 +4
searchPlayground 298 302 +4
total +20

Public APIs missing comments

Total count of every public API that lacks a comment. Target amount is 0. Run node scripts/build_api_docs --plugin [yourplugin] --stats comments for more detailed information.

id before after diff
@kbn/inference-cli - 13 +13
@kbn/kibana-api-cli - 19 +19
@kbn/sse-utils 19 20 +1
total +33

Page load bundle

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

id before after diff
entityManager 8.2KB 8.3KB +85.0B
inference 7.6KB 7.7KB +44.0B
inventory 13.4KB 13.5KB +85.0B
investigateApp 11.5KB 11.6KB +85.0B
observabilityAIAssistant 38.2KB 38.3KB +85.0B
slo 42.3KB 42.4KB +85.0B
streams 6.3KB 6.4KB +85.0B
total +554.0B
Unknown metric groups

API count

id before after diff
@kbn/inference-cli - 13 +13
@kbn/kibana-api-cli - 19 +19
@kbn/sse-utils 19 20 +1
total +33

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport This PR is a backport of another PR Team:Obs AI Assistant Observability AI Assistant

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants