Fix missing scopes in tools that call other tools (#240)
This commit is contained in:
parent
9d49572f09
commit
149c25d967
2 changed files with 27 additions and 4 deletions
|
|
@ -148,7 +148,14 @@ async def send_message_to_channel(
|
||||||
|
|
||||||
@tool(
|
@tool(
|
||||||
requires_auth=Slack(
|
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(
|
async def get_members_in_conversation_by_id(
|
||||||
|
|
@ -201,7 +208,14 @@ async def get_members_in_conversation_by_id(
|
||||||
|
|
||||||
@tool(
|
@tool(
|
||||||
requires_auth=Slack(
|
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(
|
async def get_members_in_conversation_by_name(
|
||||||
|
|
@ -351,7 +365,16 @@ async def get_messages_in_conversation_by_id(
|
||||||
# can avoid exposing this arg to the LLM.
|
# can avoid exposing this arg to the LLM.
|
||||||
@tool(
|
@tool(
|
||||||
requires_auth=Slack(
|
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(
|
async def get_messages_in_channel_by_name(
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
[tool.poetry]
|
[tool.poetry]
|
||||||
name = "arcade_slack"
|
name = "arcade_slack"
|
||||||
version = "0.2.1"
|
version = "0.2.2"
|
||||||
description = "Slack tools for LLMs"
|
description = "Slack tools for LLMs"
|
||||||
authors = ["Arcade <dev@arcade.dev>"]
|
authors = ["Arcade <dev@arcade.dev>"]
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue