Skip to content

Commit

Permalink
Fix missing scopes in tools that call other tools (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
byrro authored Feb 4, 2025
1 parent 9d49572 commit 149c25d
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 4 deletions.
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

0 comments on commit 149c25d

Please sign in to comment.