Skip to content

Commit 99a90a3

Browse files
[9.0] [Obs AI Assistant] Update AI connector description for the pre-configured connector (#221860) (#222886)
# Backport This will backport the following commits from `main` to `9.0`: - [[Obs AI Assistant] Update AI connector description for the pre-configured connector (#221860)](#221860) <!--- Backport version: 9.6.6 --> ### Questions ? Please refer to the [Backport tool documentation](https://github.com/sorenlouv/backport) <!--BACKPORT [{"author":{"name":"Viduni Wickramarachchi","email":"[email protected]"},"sourceCommit":{"committedDate":"2025-06-05T19:48:29Z","message":"[Obs AI Assistant] Update AI connector description for the pre-configured connector (#221860)\n\n## Summary\n\nThe AI Connector is being used to send requests to third party LLM\nproviders as well as the Elastic-Managed LLM.\nTherefore, the description was updated as `Use the Elastic Managed LLM\nfor your chat and RAG use cases.` only when the AI Connector is\npre-configured.\n\n## If pre-configured:\n\n<img width=\"714\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/6f4195e5-b8f0-4b15-a63a-bde012ed1d56\"\n/>\n\n\n## If **not** pre-configured:\n\n<img width=\"717\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/59fb691d-0e46-4967-85f7-f2e51931fee9\"\n/>\n\n<img width=\"707\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/0dc840ec-78f8-48e3-bc58-90f58af046b4\"\n/>\n\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"61a44661060150673e304835d430c5ac0b9a2e5c","branchLabelMapping":{"^v9.1.0$":"main","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:Obs AI Assistant","backport:version","v9.1.0","v8.19.0","v9.0.3","v8.18.3"],"title":"[Obs AI Assistant] Update AI connector description for the pre-configured connector","number":221860,"url":"https://github.com/elastic/kibana/pull/221860","mergeCommit":{"message":"[Obs AI Assistant] Update AI connector description for the pre-configured connector (#221860)\n\n## Summary\n\nThe AI Connector is being used to send requests to third party LLM\nproviders as well as the Elastic-Managed LLM.\nTherefore, the description was updated as `Use the Elastic Managed LLM\nfor your chat and RAG use cases.` only when the AI Connector is\npre-configured.\n\n## If pre-configured:\n\n<img width=\"714\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/6f4195e5-b8f0-4b15-a63a-bde012ed1d56\"\n/>\n\n\n## If **not** pre-configured:\n\n<img width=\"717\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/59fb691d-0e46-4967-85f7-f2e51931fee9\"\n/>\n\n<img width=\"707\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/0dc840ec-78f8-48e3-bc58-90f58af046b4\"\n/>\n\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"61a44661060150673e304835d430c5ac0b9a2e5c"}},"sourceBranch":"main","suggestedTargetBranches":["8.19","9.0","8.18"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/221860","number":221860,"mergeCommit":{"message":"[Obs AI Assistant] Update AI connector description for the pre-configured connector (#221860)\n\n## Summary\n\nThe AI Connector is being used to send requests to third party LLM\nproviders as well as the Elastic-Managed LLM.\nTherefore, the description was updated as `Use the Elastic Managed LLM\nfor your chat and RAG use cases.` only when the AI Connector is\npre-configured.\n\n## If pre-configured:\n\n<img width=\"714\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/6f4195e5-b8f0-4b15-a63a-bde012ed1d56\"\n/>\n\n\n## If **not** pre-configured:\n\n<img width=\"717\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/59fb691d-0e46-4967-85f7-f2e51931fee9\"\n/>\n\n<img width=\"707\" alt=\"image\"\nsrc=\"https://github.com/user-attachments/assets/0dc840ec-78f8-48e3-bc58-90f58af046b4\"\n/>\n\n\n\n### Checklist\n\n- [x] Any text added follows [EUI's writing\nguidelines](https://elastic.github.io/eui/#/guidelines/writing), uses\nsentence case text and includes [i18n\nsupport](https://github.com/elastic/kibana/blob/main/src/platform/packages/shared/kbn-i18n/README.md)\n- [x] [Unit or functional\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\nwere updated or added to match the most common scenarios\n- [x] The PR description includes the appropriate Release Notes section,\nand the correct `release_note:*` label is applied per the\n[guidelines](https://www.elastic.co/guide/en/kibana/master/contributing.html#kibana-release-notes-process)\n\n---------\n\nCo-authored-by: kibanamachine <[email protected]>","sha":"61a44661060150673e304835d430c5ac0b9a2e5c"}},{"branch":"8.19","label":"v8.19.0","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"9.0","label":"v9.0.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"},{"branch":"8.18","label":"v8.18.3","branchLabelMappingKey":"^v(\\d+).(\\d+).\\d+$","isSourceBranch":false,"state":"NOT_CREATED"}]}] BACKPORT--> Co-authored-by: Viduni Wickramarachchi <[email protected]>
1 parent 08e3404 commit 99a90a3

File tree

4 files changed

+13
-1
lines changed
  • src/platform/packages/shared/kbn-alerts-ui-shared/src/common/types
  • x-pack/platform/plugins/shared

4 files changed

+13
-1
lines changed

src/platform/packages/shared/kbn-alerts-ui-shared/src/common/types/action_types.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,7 @@ export interface ActionTypeModel<ActionConfig = any, ActionSecrets = any, Action
111111
id: string;
112112
iconClass: IconType;
113113
selectMessage: string;
114+
selectMessagePreconfigured?: string;
114115
actionTypeTitle?: string;
115116
validateParams: (
116117
actionParams: ActionParams

x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/inference.test.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ describe('actionTypeRegistry.get() works', () => {
3333
expect(actionTypeModel.selectMessage).toBe(
3434
'Send requests to AI providers such as Amazon Bedrock, OpenAI and more.'
3535
);
36+
expect(actionTypeModel.selectMessagePreconfigured).toBe(
37+
'Use the Elastic Managed LLM for your chat and RAG use cases.'
38+
);
3639
expect(actionTypeModel.actionTypeTitle).toBe('AI Connector');
3740
});
3841
});

x-pack/platform/plugins/shared/stack_connectors/public/connector_types/inference/inference.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,12 @@ export function getConnectorType(): InferenceConnector {
3333
selectMessage: i18n.translate('xpack.stackConnectors.components.inference.selectMessageText', {
3434
defaultMessage: 'Send requests to AI providers such as Amazon Bedrock, OpenAI and more.',
3535
}),
36+
selectMessagePreconfigured: i18n.translate(
37+
'xpack.stackConnectors.components.inference.selectMessagePreconfiguredText',
38+
{
39+
defaultMessage: 'Use the Elastic Managed LLM for your chat and RAG use cases.',
40+
}
41+
),
3642
actionTypeTitle: INFERENCE_CONNECTOR_TITLE,
3743
validateParams: async (
3844
actionParams: InferenceActionParams

x-pack/platform/plugins/shared/triggers_actions_ui/public/application/sections/action_connector_form/edit_connector_flyout/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -346,7 +346,9 @@ const EditConnectorFlyoutComponent: React.FC<EditConnectorFlyoutProps> = ({
346346
<FlyoutHeader
347347
isPreconfigured={connector.isPreconfigured}
348348
connectorName={connector.name}
349-
connectorTypeDesc={actionTypeModel?.selectMessage}
349+
connectorTypeDesc={
350+
actionTypeModel?.selectMessagePreconfigured || actionTypeModel?.selectMessage
351+
}
350352
setTab={handleSetTab}
351353
selectedTab={selectedTab}
352354
icon={actionTypeModel?.iconClass}

0 commit comments

Comments
 (0)