Skip to content
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
6 changes: 4 additions & 2 deletions slack_sdk/web/async_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2131,15 +2131,17 @@ async def assistant_threads_setSuggestedPrompts(
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -> AsyncSlackResponse:
"""Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
kwargs.update({"channel_id": channel_id, "prompts": prompts})
if thread_ts is not None:
kwargs.update({"thread_ts": thread_ts})
if title is not None:
kwargs.update({"title": title})
return await self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
Expand Down
6 changes: 4 additions & 2 deletions slack_sdk/web/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2121,15 +2121,17 @@ def assistant_threads_setSuggestedPrompts(
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -> SlackResponse:
"""Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
kwargs.update({"channel_id": channel_id, "prompts": prompts})
if thread_ts is not None:
kwargs.update({"thread_ts": thread_ts})
if title is not None:
kwargs.update({"title": title})
return self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
Expand Down
6 changes: 4 additions & 2 deletions slack_sdk/web/legacy_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -2132,15 +2132,17 @@ def assistant_threads_setSuggestedPrompts(
self,
*,
channel_id: str,
thread_ts: str,
thread_ts: Optional[str] = None,
title: Optional[str] = None,
prompts: List[Dict[str, str]],
**kwargs,
) -> Union[Future, SlackResponse]:
"""Set suggested prompts for the given assistant thread.
https://docs.slack.dev/reference/methods/assistant.threads.setSuggestedPrompts
"""
kwargs.update({"channel_id": channel_id, "thread_ts": thread_ts, "prompts": prompts})
kwargs.update({"channel_id": channel_id, "prompts": prompts})
if thread_ts is not None:
kwargs.update({"thread_ts": thread_ts})
if title is not None:
kwargs.update({"title": title})
return self.api_call("assistant.threads.setSuggestedPrompts", json=kwargs)
Expand Down