Skip to content

Commit e4ed842

Browse files
committed
chore: merge w main
2 parents 956f5f5 + cd52d19 commit e4ed842

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

slack_bolt/agent/async_agent.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from typing import Dict, List, Optional, Sequence, Union
22

3-
from slack_sdk.web import SlackResponse
4-
from slack_sdk.web.async_client import AsyncWebClient
3+
from slack_sdk.web.async_client import AsyncSlackResponse, AsyncWebClient
54
from slack_sdk.web.async_chat_stream import AsyncChatStream
65

76

@@ -78,7 +77,7 @@ async def set_status(
7877
channel: Optional[str] = None,
7978
thread_ts: Optional[str] = None,
8079
**kwargs,
81-
) -> SlackResponse:
80+
) -> AsyncSlackResponse:
8281
"""Sets the status of an assistant thread.
8382
8483
Args:
@@ -89,7 +88,7 @@ async def set_status(
8988
**kwargs: Additional arguments passed to ``AsyncWebClient.assistant_threads_setStatus()``.
9089
9190
Returns:
92-
``SlackResponse`` from the API call.
91+
``AsyncSlackResponse`` from the API call.
9392
"""
9493
return await self._client.assistant_threads_setStatus(
9594
channel_id=channel or self._channel_id, # type: ignore[arg-type]
@@ -107,7 +106,7 @@ async def set_suggested_prompts(
107106
channel: Optional[str] = None,
108107
thread_ts: Optional[str] = None,
109108
**kwargs,
110-
) -> SlackResponse:
109+
) -> AsyncSlackResponse:
111110
"""Sets suggested prompts for an assistant thread.
112111
113112
Args:
@@ -119,7 +118,7 @@ async def set_suggested_prompts(
119118
**kwargs: Additional arguments passed to ``AsyncWebClient.assistant_threads_setSuggestedPrompts()``.
120119
121120
Returns:
122-
``SlackResponse`` from the API call.
121+
``AsyncSlackResponse`` from the API call.
123122
"""
124123
prompts_arg: List[Dict[str, str]] = []
125124
for prompt in prompts:

0 commit comments

Comments
 (0)