This repository was archived by the owner on Sep 3, 2025. It is now read-only.
feat(genai): elevates GenAI feature to its own service library #5416
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.
Summary of Code Changes
New Files Added
exceptions.py:GenAIExceptionthat inherits fromDispatchException.service.py:generate_case_signal_historical_contextto create historical context for a case.generate_case_signal_summaryto generate an analysis summary using an AI plugin.Modifications in Existing Files
messages.py:SlackApiErrorandWebClientfrom Slack SDK.create_genai_signal_analysis_messagefunction by removing direct Slack API calls and using the AI service for generating summaries.plugin.py:get_conversation_repliesto fetch replies from a specific thread in a Slack conversation.SlackConversationPluginto use the new AI service for generating GenAI signal analysis messages.These changes introduce a new exception handling mechanism and enhance the AI-driven analysis capabilities by integrating a new service module. The Slack integration has been refactored to utilize these new services, simplifying the code and improving maintainability.