Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(genai): elevates GenAI feature to its own service library #5416

Merged
merged 4 commits into from
Nov 1, 2024

Conversation

mvilanova
Copy link
Contributor

Summary of Code Changes

New Files Added

  • exceptions.py:

    • Introduced a new exception class GenAIException that inherits from DispatchException.
  • service.py:

    • Added a new service module with functions to generate historical context and analysis summaries for cases related to signals.
    • Implemented generate_case_signal_historical_context to create historical context for a case.
    • Implemented generate_case_signal_summary to generate an analysis summary using an AI plugin.

Modifications in Existing Files

  • messages.py:

    • Removed the use of SlackApiError and WebClient from Slack SDK.
    • Integrated the new AI service to generate GenAI signal analysis messages.
    • Simplified the create_genai_signal_analysis_message function by removing direct Slack API calls and using the AI service for generating summaries.
  • plugin.py:

    • Added a new method get_conversation_replies to fetch replies from a specific thread in a Slack conversation.
    • Updated the SlackConversationPlugin to 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.

@mvilanova mvilanova added the enhancement New feature or request label Oct 31, 2024
@mvilanova mvilanova merged commit 583b5e3 into master Nov 1, 2024
8 checks passed
@mvilanova mvilanova deleted the enhancement/genai-library branch November 1, 2024 20:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants