[Security AI Assistant] Persist prompts#187040
Conversation
…nt-prompt-store # Conflicts: # x-pack/packages/kbn-elastic-assistant/impl/assistant/conversations/conversation_settings/conversation_settings.tsx # x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_selector/system_prompt_selector.tsx # x-pack/packages/kbn-elastic-assistant/impl/assistant/prompt_editor/system_prompt/system_prompt_modal/system_prompt_settings.tsx # x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_selector/quick_prompt_selector.tsx # x-pack/packages/kbn-elastic-assistant/impl/assistant/quick_prompts/quick_prompt_settings/quick_prompt_settings.tsx # x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings.tsx # x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/assistant_settings_management.tsx # x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.test.tsx # x-pack/packages/kbn-elastic-assistant/impl/assistant/settings/use_settings_updater/use_settings_updater.tsx # x-pack/packages/kbn-elastic-assistant/impl/assistant/types.ts # x-pack/packages/kbn-elastic-assistant/impl/assistant_context/index.tsx
…umenko/kibana into security-ai-assistant-prompt-store
banderror
left a comment
There was a problem hiding this comment.
Rule Management changes LGTM
| type: boolean | ||
| isShared: | ||
| type: boolean | ||
| consumer: |
There was a problem hiding this comment.
his value will come from the Kibana applications.currentAppId$, which is dynamic and we should be flexible enough to supporting new apps
stephmilovic
left a comment
There was a problem hiding this comment.
Nice work Yuliia, LGTM!!
…umenko/kibana into security-ai-assistant-prompt-store
| http.fetch(ELASTIC_AI_ASSISTANT_PROMPTS_URL_FIND, { | ||
| method: 'GET', | ||
| version: API_VERSIONS.internal.v1, | ||
| query: QUERY, |
There was a problem hiding this comment.
The long term goal for prompt settings table would be moving away from the in-memory table and control the pagination. We might want the query to be passed from the payload in the long run. https://github.com/elastic/kibana/pull/186566/files#diff-4e741c819ea07d57f5a686e4a5e024a034ee2e4d16b4775ea3d3501787bb83d6R51
For later, should we add the include the conversations that are using this prompt or update the fetchCurrentConversations function? The current implementation for fetching conversations that using this prompt is actually filtering from all the conversations by their defaultSystemPrompt Id on the client side. This might not be great for performance when there are more and more conversations in the future.
⏳ Build in-progress, with failures
Failed CI StepsTest Failures
History
cc @YulNaumenko |
…umenko/kibana into security-ai-assistant-prompt-store
Moving prompts persistence layer from the local storage to the server side data stream
.kibana-elastic-ai-assistant-prompts