8000 enhance: make slack tools self-contained by njhale · Pull Request #78 · obot-platform/tools · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

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

Merged
merged 1 commit into from
Oct 9, 2024

Conversation

njhale
Copy link
Member
@njhale njhale commented Oct 8, 2024
  • 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

Copy link
Member
@g-linville g-linville left a 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...

@@ -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
Copy link
Member

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.

@@ -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
Copy link
Member

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.

@njhale njhale force-pushed the enhance/slack-standalone branch 2 times, most recently from 9a60a24 to c04787c Compare October 9, 2024 13:41
@njhale njhale requested a review from g-linville October 9, 2024 13:57
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
Copy link
Member

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.

Copy link
Member Author

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>
@njhale njhale force-pushed the enhance/slack-standalone branch from c04787c to 68a250f Compare October 9, 2024 19:04
@njhale njhale requested a review from g-linville October 9, 2024 19:05
@njhale njhale merged commit 7798a47 into obot-platform:main Oct 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0