[8.x] [Observability AI Assistant] rule connector - handle multiple prompt (#209221)#210774
Merged
arturoliduena merged 1 commit intoelastic:8.xfrom Feb 12, 2025
Merged
Conversation
…lastic#209221) Intermediate releases to change rule or connector schemas in serverless for elastic#185032 ## Summary An Observability AI Assistant connector is available to be set as action for Observability rules. When an alert is triggered, a conversation with the AI assistant will be created sending the initial prompt set by the user in the rule action. The conversation is then stored and can be retrieved from the AI Assistant interface. the action is triggered on any status change of the alert (active, recovered, untracked), creating a new conversation for each of them using the same initial prompt which may not be suitable for the 3 cases. Improvement The user is able to choose in when the action should be run (active, recovered, untracked, all),. That would allow the user to specify more than one AI Assistant action, with a different and more suitable prompt in each case. (cherry picked from commit 3924e09) # Conflicts: # x-pack/solutions/observability/plugins/observability_ai_assistant_app/tsconfig.json
9 tasks
pgayvallet
approved these changes
Feb 12, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Backport
This will backport the following commits from
mainto8.x:Questions ?
Please refer to the Backport tool documentation
\n\n### Questions ?\nPlease refer to the [Backport tool\ndocumentation](https://github.com/sqren/backport)\n\n\\r\\n\\r\\n### Questions ?\\r\\nPlease refer to\nthe [Backport\ntool\\r\\ndocumentation](https://github.com/sorenlouv/backport)\\r\\n\\r\\n\"}},{\"branch\":\"main\",\"label\":\"v9.1.0\",\"branchLabelMappingKey\":\"^v9.1.0$\",\"isSourceBranch\":true,\"state\":\"MERGED\",\"url\":\"https://github.com//pull/209221\",\"number\":209221,\"mergeCommit\":{\"message\":\"[Observability\nAI Assistant] rule connector - handle multiple prompt\n(#209221)\\n\\nIntermediate releases to change rule or connector schemas\nin serverless\\r\\nfor #185032\\r\\n\\r\\n## Summary\\r\\n\\r\\nAn Observability\nAI Assistant connector is available to be set as action\\r\\nfor\nObservability rules. When an alert is triggered, a conversation\nwith\\r\\nthe AI assistant will be created sending the initial prompt set\nby the\\r\\nuser in the rule action. The conversation is then stored and\ncan be\\r\\nretrieved from the AI Assistant interface. the action is\ntriggered on\\r\\nany status change of the alert (active, recovered,\nuntracked), creating\\r\\na new conversation for each of them using the\nsame initial prompt which\\r\\nmay not be suitable for the 3\ncases.\\r\\n\\r\\nImprovement\\r\\nThe user is able to choose in when the\naction should be run (active,\\r\\nrecovered, untracked, all),. That would\nallow the user to specify more\\r\\nthan one AI Assistant action, with a\ndifferent and more suitable prompt\\r\\nin each\ncase.\",\"sha\":\"3924e095c5d9791e7a83208fdde6e542de1475bb\"}},{\"branch\":\"8.x\",\"label\":\"v8.19.0\",\"branchLabelMappingKey\":\"^v8.19.0$\",\"isSourceBranch\":false,\"state\":\"NOT_CREATED\"}]}]\nBACKPORT-->\n\nCo-authored-by: Arturo Lidueña "}},{"branch":"8.18","label":"v8.18.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"url":"https://github.com//pull/210050","number":210050,"state":"MERGED","mergeCommit":{"sha":"2d36c65bc3840ee83858ecca678ebd499a935602","message":"[8.18] [Observability AI Assistant] rule connector - handle multiple prompt (#209221) (#210050)\n\n# Backport\r\n\r\nThis will backport the following commits from `main` to `8.18`:\r\n- [[Observability AI Assistant] rule connector - handle multiple prompt\r\n(#209221)](https://github.com//pull/209221)\r\n\r\n\r\n\r\n### Questions ?\r\nPlease refer to the [Backport tool\r\ndocumentation](https://github.com/sorenlouv/backport)\r\n\r\n"}},{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com//pull/209221","number":209221,"mergeCommit":{"message":"[Observability AI Assistant] rule connector - handle multiple prompt (#209221)\n\nIntermediate releases to change rule or connector schemas in serverless\r\nfor #185032\r\n\r\n## Summary\r\n\r\nAn Observability AI Assistant connector is available to be set as action\r\nfor Observability rules. When an alert is triggered, a conversation with\r\nthe AI assistant will be created sending the initial prompt set by the\r\nuser in the rule action. The conversation is then stored and can be\r\nretrieved from the AI Assistant interface. the action is triggered on\r\nany status change of the alert (active, recovered, untracked), creating\r\na new conversation for each of them using the same initial prompt which\r\nmay not be suitable for the 3 cases.\r\n\r\nImprovement\r\nThe user is able to choose in when the action should be run (active,\r\nrecovered, untracked, all),. That would allow the user to specify more\r\nthan one AI Assistant action, with a different and more suitable prompt\r\nin each case.","sha":"3924e095c5d9791e7a83208fdde6e542de1475bb"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT-->