-
Notifications
You must be signed in to change notification settings - Fork 425
Slack tool #821
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
Merged
Merged
Slack tool #821
Conversation
This file contains hidden or 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
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #821 +/- ##
==========================================
- Coverage 79.73% 79.12% -0.61%
==========================================
Files 244 250 +6
Lines 10486 10673 +187
==========================================
+ Hits 8361 8445 +84
- Misses 2125 2228 +103 ☔ View full report in Codecov by Sentry. |
tianjing-li
reviewed
Oct 29, 2024
tianjing-li
reviewed
Oct 29, 2024
tianjing-li
reviewed
Oct 29, 2024
tianjing-li
reviewed
Oct 29, 2024
Collaborator
Collaborator
Author
tianjing-li
approved these changes
Nov 1, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.


Slack Tool implementation
SlackTool.mp4
AI Description
This PR adds a new Slack tool to the deployable all-in-one RAG application. The Slack tool allows users to search Slack for relevant document snippets.
The PR includes the following changes:
docs/custom_tool_guides/slack.md, is added, which provides instructions for setting up the Slack tool.poetry.lockfile is updated to include theslack-sdkpackage, which is required for the Slack tool.pyproject.tomlfile is updated to include theslack-sdkpackage as a dependency.src/backend/config/configuration.template.yamlfile is updated to include a newslacksection, which specifies the user scopes required for the Slack tool.src/backend/config/secrets.template.yamlfile is updated to include a newslacksection, which specifies the client ID and client secret required for the Slack tool.src/backend/config/settings.pyfile is updated to include a newSlackSettingsclass, which is used to configure the Slack tool.src/backend/config/tools.pyfile is updated to include newSlackAuthandSlackToolclasses, which are used to authenticate and interact with the Slack tool.src/backend/tools/__init__.pyfile is updated to include newSlackAuthandSlackToolclasses, which are used to authenticate and interact with the Slack tool.src/backend/tools/base.pyfile is updated to include a newtool_auth_crud.delete_tool_authmethod, which is used to delete tool authentication information.src/backend/tools/slack/__init__.pyfile is added, which imports theSlackAuth,SlackTool, andSLACK_TOOL_IDconstants from thebackend.tools.slackmodule.src/backend/tools/slack/auth.pyfile is added, which defines theSlackAuthclass, which is used to authenticate the Slack tool.src/backend/tools/slack/client.pyfile is added, which defines theSlackClientclass, which is used to interact with the Slack API.src/backend/tools/slack/constants.pyfile is added, which defines theSEARCH_LIMITandSLACK_TOOL_IDconstants, which are used by the Slack tool.src/backend/tools/slack/tool.pyfile is added, which defines theSlackToolclass, which is used to search Slack for relevant document snippets.src/backend/tools/slack/utils.pyfile is added, which defines theSlackServiceclass, which is used to interact with the Slack API.src/interfaces/assistants_web/src/app/(main)/settings/Settings.tsxfile is updated to include a newSlackConnectioncomponent, which is used to display the Slack connection status.src/interfaces/assistants_web/src/components/AgentSettingsForm/StatusConnection.tsxfile is added, which defines theStatusConnectioncomponent, which is used to display the Slack connection status.src/interfaces/assistants_web/src/components/AgentSettingsForm/ToolsStep.tsxfile is updated to include a newhandleAuthButtonClickprop, which is used to handle authentication for the Slack tool.src/interfaces/assistants_web/src/components/AgentSettingsForm/index.tsxfile is updated to include a newhandleAuthButtonClickmethod, which is used to handle authentication for the Slack tool.src/interfaces/assistants_web/src/components/UI/Icon.tsxfile is updated to include a newSlackcomponent, which is used to display the Slack icon.src/interfaces/assistants_web/src/constants/tools.tsfile is updated to include a newTOOL_SLACK_IDconstant, which is used to identify the Slack tool.