Skip to content

[9.3] [Obs AI] Use the Observability Agent in AI Insights and flyout config (#249776)#249915

Merged
kibanamachine merged 1 commit intoelastic:9.3from
kibanamachine:backport/9.3/pr-249776
Jan 21, 2026
Merged

[9.3] [Obs AI] Use the Observability Agent in AI Insights and flyout config (#249776)#249915
kibanamachine merged 1 commit intoelastic:9.3from
kibanamachine:backport/9.3/pr-249776

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.3:

Questions ?

Please refer to the Backport tool documentation

…elastic#249776)

Closes elastic/obs-ai-team#469

## Summary

This PR updates the agent used for Observability AI Insights and the
active flyout config in Observability pages to use the Obs Agent. The
reason for this change is because we want to benefit from all the tools
and instructions in the Obs Agent which caters specifically for
Observability signals.

In addition to the above, this PR also removes the
`platform.core.search` tool from the Obs Agent for the following
reasons:

- **High failure rate** - This tool fails on observability indices
because they lack text or semantic_text field mappings, resulting in
frequent "No text or semantic_text fields found" errors.
- **Token/Cost wastage** - Failed tool calls consume tokens and increase
latency without providing value, often triggering unnecessary retries
- **Redundant** - The observability agent already has specialized tools
(`get_correlated_logs`, `get_trace_metrics`, `get_services`,
`get_index_info`, etc.) designed specifically for observability data.
- Better tool selection by the LLM - Removing this tool allows the LLM
to select more reliable specialized tools, improving the success rate
and completion time.

### Log AI Insights

https://github.com/user-attachments/assets/8c988b1c-4fb1-4317-bea7-23f4a83e5d0f

### Alert AI Insights

https://github.com/user-attachments/assets/83fbcf35-6ca1-451a-9e48-1c35fe697058

### Error AI Insights

https://github.com/user-attachments/assets/e2937ab0-98ee-4212-91e0-fa69962e6754

### Checklist

- [x] The PR description includes the appropriate Release Notes section,
and the correct `release_note:*` label is applied per the
[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)
- [x] Review the [backport
guidelines](https://docs.google.com/document/d/1VyN5k91e5OVumlc0Gb9RPa3h1ewuPE705nRtioPiTvY/edit?usp=sharing)
and apply applicable `backport:*` labels.

(cherry picked from commit 09d2490)
@kibanamachine kibanamachine added the backport This PR is a backport of another PR label Jan 21, 2026
@botelastic botelastic Bot added Team:obs-presentation Focus: APM UI, Infra UI, Hosts UI, Universal Profiling, Obs Overview and left Navigation Team:obs-ux-management labels Jan 21, 2026
@kibanamachine kibanamachine enabled auto-merge (squash) January 21, 2026 16:39
@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-ux-management-team (Team:obs-ux-management)

@elasticmachine
Copy link
Copy Markdown
Contributor

Pinging @elastic/obs-presentation-team (Team:obs-presentation)

@kibanamachine kibanamachine merged commit 7cbd0d7 into elastic:9.3 Jan 21, 2026
21 checks passed
@elasticmachine
Copy link
Copy Markdown
Contributor

💛 Build succeeded, but was flaky

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #27 / integrations When on the Endpoint Policy Details Page "after all" hook in "When on the Endpoint Policy Details Page"
  • [job] [logs] FTR Configs #27 / integrations When on the Endpoint Policy Details Page "before all" hook in "When on the Endpoint Policy Details Page"

Metrics [docs]

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
observabilityAgentBuilder 52 54 +2

Async chunks

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

id before after diff
apm 2.8MB 2.8MB +34.0B
observability 1.7MB 1.7MB +33.0B
observabilityAgentBuilder 15.7KB 15.8KB +22.0B
total +89.0B

Page load bundle

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

id before after diff
observabilityAgentBuilder 6.3KB 6.4KB +65.0B
Unknown metric groups

API count

id before after diff
observabilityAgentBuilder 52 54 +2

cc @viduni94

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-presentation Focus: APM UI, Infra UI, Hosts UI, Universal Profiling, Obs Overview and left Navigation Team:obs-ux-management

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants