-
Notifications
You must be signed in to change notification settings - Fork 8
Adding files and image support for Slack #180
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This pull request adds file and image attachment support to the Slack integration, allowing the bot to process images and documents (except audio/video) sent by users in Slack messages.
Key Changes:
- Added httpx dependency to enable downloading files from Slack's private URLs
- Implemented file processing logic that downloads, base64-encodes, and categorizes attachments as either images or files
- Added audio/video file rejection with user feedback to prevent unsupported media types
Reviewed changes
Copilot reviewed 4 out of 5 changed files in this pull request and generated 6 comments.
Show a summary per file
| File | Description |
|---|---|
| examples/api/slack/README.md | Corrected path reference from integrations to integration |
| ak-py/uv.lock | Added httpx dependency to slack extras and updated lock file revision |
| ak-py/pyproject.toml | Added httpx>=0.27.0 as a dependency for slack extras |
| ak-py/src/agentkernel/integration/slack/slack_chat.py | Implemented file/image download, processing, and integration with agent service using run_multi |
| ak-py/src/agentkernel/integration/slack/README.md | Updated OAuth scopes documentation and added limitation notes about file/image handling in chat history |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 4 out of 5 changed files in this pull request and generated 8 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
Copilot reviewed 8 out of 9 changed files in this pull request and generated 3 comments.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
This contain code changes to add files and image support for Slack
Type of Change
Related Issues
#167
Testing
Checklist