Skip to content
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

Fix missing scopes in tools that call other tools #240

Merged
merged 2 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 26 additions & 3 deletions toolkits/slack/arcade_slack/tools/chat.py
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,14 @@ async def send_message_to_channel(

@tool(
requires_auth=Slack(
scopes=["channels:read", "groups:read", "im:read", "mpim:read"],
scopes=[
"channels:read",
"groups:read",
"im:read",
"mpim:read",
"users:read",
"users:read.email",
],
)
)
async def get_members_in_conversation_by_id(
Expand Down Expand Up @@ -201,7 +208,14 @@ async def get_members_in_conversation_by_id(

@tool(
requires_auth=Slack(
scopes=["channels:read", "groups:read", "im:read", "mpim:read"],
scopes=[
"channels:read",
"groups:read",
"im:read",
"mpim:read",
"users:read",
"users:read.email",
],
)
)
async def get_members_in_conversation_by_name(
Expand Down Expand Up @@ -351,7 +365,16 @@ async def get_messages_in_conversation_by_id(
# can avoid exposing this arg to the LLM.
@tool(
requires_auth=Slack(
scopes=["channels:history", "groups:history", "im:history", "mpim:history"],
scopes=[
"channels:history",
"channels:read",
"groups:history",
"groups:read",
"im:history",
"im:read",
"mpim:history",
"mpim:read",
],
)
)
async def get_messages_in_channel_by_name(
Expand Down
2 changes: 1 addition & 1 deletion toolkits/slack/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "arcade_slack"
version = "0.2.1"
version = "0.2.2"
description = "Slack tools for LLMs"
authors = ["Arcade <dev@arcade.dev>"]

Expand Down