forked from SolaceLabs/solace-ai-connector-slack
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
**Update Dependencies and Enhance Slack Plugin Functionality**
**Changes:** 1. **Dependency Updates:** - Updated the `solace_ai_connector` dependency in `pyproject.toml` from `>=0.0.1` to `>=0.1.3` to incorporate the latest features and fixes. 2. **Enhancements to `slack_input.py`:** - Added the `input_type` field to `user_properties` to specify the source as Slack. - Improved message acknowledgment logic to ensure the acknowledgment message is only sent for direct messages (channel type is `im`). - Enhanced the `process_text_for_mentions` method to improve performance by skipping unnecessary processing when no mentions exist in the text. 3. **Enhancements to `slack_output.py`:** - Introduced `streaming_state` management to track and handle message streaming states and ensure accurate Slack message updates. - Added mechanisms to handle the first and last chunks of streamed content, ensuring the state is updated correctly. - Incorporated logic to manage the lifetime of streaming states, automatically aging out old states to maintain performance. - Provided better handling for message indexing and bulk updates to ensure efficient Slack message posting without redundancy. - Added error handling to clean up acknowledgment messages after message streaming is complete. **Overall Impact:** These enhancements improve the reliability and efficiency of the Slack input and output components within the Solace AI Connector, ensuring smoother operation and better handling of streamed messages, acknowledgments, and user mentions.
- Loading branch information
Showing
3 changed files
with
90 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters