Skip to content

[9.4] Fix observability_ai_assistant_tool_call EBT error when connector is an inference endpoint (#263334)#264292

Merged
kibanamachine merged 2 commits intoelastic:9.4from
kibanamachine:backport/9.4/pr-263334
Apr 20, 2026
Merged

[9.4] Fix observability_ai_assistant_tool_call EBT error when connector is an inference endpoint (#263334)#264292
kibanamachine merged 2 commits intoelastic:9.4from
kibanamachine:backport/9.4/pr-263334

Conversation

@kibanamachine
Copy link
Copy Markdown
Contributor

Backport

This will backport the following commits from main to 9.4:

Questions ?

Please refer to the Backport tool documentation

…an inference endpoint (elastic#263334)

Closes elastic/obs-ai-team#564

Replaced `actionsClient.get()` with
`getConnectorByIdWithoutClientRequest()` from the inference plugin to
resolve connector info for analytics. The old method only worked for
traditional action connectors, not inference endpoints, causing the
connector to be undefined and the EBT schema validation to fail.

**Test Plan:**

1. Open Observability AI Assistant;
2. Ask any question, like "Do I have any alerts?"
3.Check that in the logs there is no errors like
`"message": "Failed to validate payload coming from \"Event Type
'observability_ai_assistant_tool_call'\":\n\t- [connector]:
{\"expected\":\"{ connectorId: string, name: string, type: string,
modelFamily: string, modelProvider: string, modelId?: string
}\",\"actual\":\"undefined\",\"value\":\"undefined\"}"}`

---------

Co-authored-by: Viduni Wickramarachchi <viduni.ushanka@gmail.com>
Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
(cherry picked from commit d0e1774)
@elasticmachine
Copy link
Copy Markdown
Contributor

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

@github-actions
Copy link
Copy Markdown
Contributor

🤖 GitHub comments

Expand to view the GitHub comments

Just comment with:

  • /oblt-deploy : Deploy a Kibana instance using the Observability test environments.
  • run docs-build : Re-trigger the docs validation. (use unformatted text in the comment!)

@elasticmachine
Copy link
Copy Markdown
Contributor

⏳ Build in-progress, with failures

  • Buildkite Build
  • Commit: d8accbc
  • Kibana Serverless Image: docker.elastic.co/kibana-ci/kibana-serverless:pr-264292-d8accbc41c35

Failed CI Steps

History

cc @yuliia-fryshko

@kibanamachine kibanamachine merged commit ea6a284 into elastic:9.4 Apr 20, 2026
14 checks passed
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 ci:project-deploy-observability Create an Observability project Team:obs-ai Observability AI team

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants