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

[Obs AI Assistant] Fix bug with get_alerts_dataset_info #212077

Merged
merged 3 commits into from
Feb 22, 2025

Conversation

sorenlouv
Copy link
Member

@sorenlouv sorenlouv commented Feb 21, 2025

@sorenlouv sorenlouv requested a review from a team as a code owner February 21, 2025 13:28
@botelastic botelastic bot added the Team:Obs AI Assistant Observability AI Assistant label Feb 21, 2025
@elasticmachine
Copy link
Contributor

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

@sorenlouv sorenlouv added backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) v9.0.0 backport:version Backport to applied version labels v9.1.0 v8.19.0 release_note:skip Skip the PR/issue when compiling release notes and removed Team:Obs AI Assistant Observability AI Assistant backport:prev-minor Backport to (9.0) the previous minor version (i.e. one version back from main) labels Feb 21, 2025
// remove the function request
...messages.filter((msg) => !msg.message?.function_call),
// remove the last function request
...messages.slice(0, -1),
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This was the root cause. The rest of the PR is just adding logs to aid in debugging

@botelastic botelastic bot added the Team:Obs AI Assistant Observability AI Assistant label Feb 21, 2025
@sorenlouv sorenlouv merged commit 54f96d0 into elastic:main Feb 22, 2025
10 checks passed
@sorenlouv sorenlouv deleted the fix-bug-get_alerts_dataset_info branch February 22, 2025 11:50
@kibanamachine
Copy link
Contributor

Starting backport for target branches: 8.x, 9.0

https://github.com/elastic/kibana/actions/runs/13472610849

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

✅ unchanged

History

@sorenlouv
Copy link
Member Author

Merging now due to the urgency.

@kibanamachine
Copy link
Contributor

💔 Some backports could not be created

Status Branch Result
8.x Backport failed because of merge conflicts
9.0

Note: Successful backport PRs will be merged automatically after passing CI.

Manual backport

To create the backport manually run:

node scripts/backport --pr 212077

Questions ?

Please refer to the Backport tool documentation

kibanamachine added a commit that referenced this pull request Feb 22, 2025
) (#212181)

# Backport

This will backport the following commits from `main` to `9.0`:
- [[Obs AI Assistant] Fix bug with `get_alerts_dataset_info`
(#212077)](#212077)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Søren
Louv-Jansen","email":"soren.louv@elastic.co"},"sourceCommit":{"committedDate":"2025-02-22T11:50:14Z","message":"[Obs
AI Assistant] Fix bug with `get_alerts_dataset_info` (#212077)\n\nCloses
https://github.com/elastic/kibana/issues/212005\n\nRegression introduced
in:\nhttps://github.com//pull/209773/files#diff-83722bb07633512b20beb965628b18290628de985d399989011cc20c82fa483cL116\n\nTODO:\n\n-
Add a test that would have caught
this","sha":"54f96d0070306bf13eeace9a55a157b5a8341526","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","v9.0.0","Team:Obs
AI Assistant","backport:version","v9.1.0","v8.19.0"],"title":"[Obs AI
Assistant] Fix bug with
`get_alerts_dataset_info`","number":212077,"url":"https://github.com/elastic/kibana/pull/212077","mergeCommit":{"message":"[Obs
AI Assistant] Fix bug with `get_alerts_dataset_info` (#212077)\n\nCloses
https://github.com/elastic/kibana/issues/212005\n\nRegression introduced
in:\nhttps://github.com//pull/209773/files#diff-83722bb07633512b20beb965628b18290628de985d399989011cc20c82fa483cL116\n\nTODO:\n\n-
Add a test that would have caught
this","sha":"54f96d0070306bf13eeace9a55a157b5a8341526"}},"sourceBranch":"main","suggestedTargetBranches":["9.0","8.x"],"targetPullRequestStates":[{"branch":"9.0","label":"v9.0.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212077","number":212077,"mergeCommit":{"message":"[Obs
AI Assistant] Fix bug with `get_alerts_dataset_info` (#212077)\n\nCloses
https://github.com/elastic/kibana/issues/212005\n\nRegression introduced
in:\nhttps://github.com//pull/209773/files#diff-83722bb07633512b20beb965628b18290628de985d399989011cc20c82fa483cL116\n\nTODO:\n\n-
Add a test that would have caught
this","sha":"54f96d0070306bf13eeace9a55a157b5a8341526"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Søren Louv-Jansen <soren.louv@elastic.co>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backport:version Backport to applied version labels release_note:skip Skip the PR/issue when compiling release notes Team:Obs AI Assistant Observability AI Assistant v8.19.0 v9.0.0 v9.1.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Obs AI Assistant] Error calling tool get_alerts_dataset_info
4 participants