-
Notifications
You must be signed in to change notification settings - Fork 23
enhance: make slack tools self-contained #78
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
edited
- Share slack tool dependencies to make tools "self-contained"; i.e. Each tool can be imported and used without manually importing other tools
- Add tool "bundle" for slack
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.
One other thing - I've found that all of the other list and search commands are useful to include with Search Messages
, so that the LLM can include modifiers like in:
and from:
. Since they aren't strictly required though, I'm not really sure what to do...
apis/slack/tool.gpt
Outdated
@@ -19,6 +19,7 @@ Name: Get Channel History | |||
Description: Get the chat history for a channel in the Slack workspace | |||
Share Context: Slack Context | |||
Credential: github.com/gptscript-ai/gateway-oauth2 as slack.write with SLACK_TOKEN as env and slack as integration and "channels:history groups:history im:history mpim:history channels:read files:read im:read search:read team:read users:read groups:read chat:write groups:write mpim:write im:write" as scope | |||
Share Tools: List Channels |
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.
In each of the places where we share List Channels
, can we also share Search Channels
? The latter is a lot more useful for Slack workspaces that have a ton of channels.
apis/slack/tool.gpt
Outdated
@@ -97,6 +102,7 @@ Name: Send DM | |||
Description: Send a direct message to a user. | |||
Share Context: Slack Context | |||
Credential: github.com/gptscript-ai/gateway-oauth2 as slack.write with SLACK_TOKEN as env and slack as integration and "channels:history groups:history im:history mpim:history channels:read files:read im:read search:read team:read users:read groups:read chat:write groups:write mpim:write im:write" as scope | |||
Share Tools: List Users |
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.
Same here, we should include Search Users
.
9a60a24
to
c04787c
Compare
slack/tool.gpt
Outdated
--- | ||
Name: Slack | ||
Description: Tools for interacting with Slack | ||
Share Tools: List Channels, Get Channel History, Get Channel History by Time, Get Thread History, Search Messages, Send Message, Send Message in Thread, List Users, Search Users, Send DM, Send DM in Thread, Get Message Link, Get DM History, Get DM Thread History |
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.
Search Channels
is missing from here.
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.
Nice catch. Done.
Share slack tool dependencies to make tools "self-contained"; i.e. Each tool can be imported and used without manually importing other tools Signed-off-by: Nick Hale <4175918+njhale@users.noreply.github.com>
c04787c
to
68a250f
Compare