Skip to content

Commit

Permalink
[Obs AI Assistant] Add aiAssistant:preferredAIAssistantType setting…
Browse files Browse the repository at this point in the history
… to settings page (elastic#190969)

This adds the `aiAssistant:preferredAIAssistantType` setting (aka
"Observability AI Assistant scope") to the Obs AI Assistant settings
page. It was not necessary to re-define the setting definition as it was
already declared
[here](https://github.com/elastic/kibana/blob/5acd638327e5f22683910d2b97e05bbf4e87b3c9/src/plugins/ai_assistant_management/selection/server/plugin.ts#L48-L89)


![image](https://github.com/user-attachments/assets/96619f37-8835-4f49-8365-80b69f5d4699)
  • Loading branch information
sorenlouv authored Aug 28, 2024
1 parent f7520a6 commit eeed6c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ export const aiAssistantSimulatedFunctionCalling =
'observability:aiAssistantSimulatedFunctionCalling';
export const aiAssistantSearchConnectorIndexPattern =
'observability:aiAssistantSearchConnectorIndexPattern';
export const aiAssistantPreferredAIAssistantType = 'aiAssistant:preferredAIAssistantType';
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,7 @@ export {
aiAssistantLogsIndexPattern,
aiAssistantSimulatedFunctionCalling,
aiAssistantSearchConnectorIndexPattern,
aiAssistantPreferredAIAssistantType,
} from '../common/ui_settings/settings_keys';

export const plugin: PluginInitializer<
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
aiAssistantResponseLanguage,
aiAssistantSimulatedFunctionCalling,
aiAssistantSearchConnectorIndexPattern,
aiAssistantPreferredAIAssistantType,
} from '@kbn/observability-ai-assistant-plugin/public';
import { FieldRow, FieldRowProvider } from '@kbn/management-settings-components-field-row';
import { EuiSpacer } from '@elastic/eui';
Expand All @@ -24,6 +25,7 @@ const settingsKeys = [
aiAssistantResponseLanguage,
aiAssistantSimulatedFunctionCalling,
aiAssistantSearchConnectorIndexPattern,
aiAssistantPreferredAIAssistantType,
];

export function UISettings() {
Expand Down

0 comments on commit eeed6c8

Please sign in to comment.