diff --git a/slack_sdk/web/async_client.py b/slack_sdk/web/async_client.py index a3564e358..0c047892a 100644 --- a/slack_sdk/web/async_client.py +++ b/slack_sdk/web/async_client.py @@ -2075,12 +2075,15 @@ async def assistant_threads_setStatus( channel_id: str, thread_ts: str, status: str, + loading_messages: Optional[List[str]] = None, **kwargs, ) -> AsyncSlackResponse: - """Revokes a token. + """Set the status for an AI assistant thread. https://api.slack.com/methods/assistant.threads.setStatus """ - kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) + kwargs.update( + {"channel_id": channel_id, "thread_ts": thread_ts, "status": status, "loading_messages": loading_messages} + ) return await self.api_call("assistant.threads.setStatus", params=kwargs) async def assistant_threads_setTitle( @@ -2091,7 +2094,7 @@ async def assistant_threads_setTitle( title: str, **kwargs, ) -> AsyncSlackResponse: - """Revokes a token. + """Set the title for the given assistant thread. https://api.slack.com/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) @@ -2106,7 +2109,7 @@ async def assistant_threads_setSuggestedPrompts( prompts: List[Dict[str, str]], **kwargs, ) -> AsyncSlackResponse: - """Revokes a token. + """Set suggested prompts for the given assistant thread. https://api.slack.com/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) diff --git a/slack_sdk/web/client.py b/slack_sdk/web/client.py index c1d8119c9..9ff9eeb66 100644 --- a/slack_sdk/web/client.py +++ b/slack_sdk/web/client.py @@ -2065,12 +2065,15 @@ def assistant_threads_setStatus( channel_id: str, thread_ts: str, status: str, + loading_messages: Optional[List[str]] = None, **kwargs, ) -> SlackResponse: - """Revokes a token. + """Set the status for an AI assistant thread. https://api.slack.com/methods/assistant.threads.setStatus """ - kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) + kwargs.update( + {"channel_id": channel_id, "thread_ts": thread_ts, "status": status, "loading_messages": loading_messages} + ) return self.api_call("assistant.threads.setStatus", params=kwargs) def assistant_threads_setTitle( @@ -2081,7 +2084,7 @@ def assistant_threads_setTitle( title: str, **kwargs, ) -> SlackResponse: - """Revokes a token. + """Set the title for the given assistant thread. https://api.slack.com/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) @@ -2096,7 +2099,7 @@ def assistant_threads_setSuggestedPrompts( prompts: List[Dict[str, str]], **kwargs, ) -> SlackResponse: - """Revokes a token. + """Set suggested prompts for the given assistant thread. https://api.slack.com/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts}) diff --git a/slack_sdk/web/legacy_client.py b/slack_sdk/web/legacy_client.py index 637ca0a88..e83f82a1a 100644 --- a/slack_sdk/web/legacy_client.py +++ b/slack_sdk/web/legacy_client.py @@ -2077,12 +2077,15 @@ def assistant_threads_setStatus( channel_id: str, thread_ts: str, status: str, + loading_messages: Optional[List[str]] = None, **kwargs, ) -> Union[Future, SlackResponse]: - """Revokes a token. + """Set the status for an AI assistant thread. https://api.slack.com/methods/assistant.threads.setStatus """ - kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "status": status}) + kwargs.update( + {"channel_id": channel_id, "thread_ts": thread_ts, "status": status, "loading_messages": loading_messages} + ) return self.api_call("assistant.threads.setStatus", params=kwargs) def assistant_threads_setTitle( @@ -2093,7 +2096,7 @@ def assistant_threads_setTitle( title: str, **kwargs, ) -> Union[Future, SlackResponse]: - """Revokes a token. + """Set the title for the given assistant thread. https://api.slack.com/methods/assistant.threads.setTitle """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "title": title}) @@ -2108,7 +2111,7 @@ def assistant_threads_setSuggestedPrompts( prompts: List[Dict[str, str]], **kwargs, ) -> Union[Future, SlackResponse]: - """Revokes a token. + """Set suggested prompts for the given assistant thread. https://api.slack.com/methods/assistant.threads.setSuggestedPrompts """ kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})