@@ -2091,13 +2091,24 @@ async def assistant_threads_setStatus(
20912091 thread_ts : str ,
20922092 status : str ,
20932093 loading_messages : Optional [List [str ]] = None ,
2094+ icon_emoji : Optional [str ] = None ,
2095+ icon_url : Optional [str ] = None ,
2096+ username : Optional [str ] = None ,
20942097 ** kwargs ,
20952098 ) -> AsyncSlackResponse :
20962099 """Set the status for an AI assistant thread.
20972100 https://docs.slack.dev/reference/methods/assistant.threads.setStatus
20982101 """
20992102 kwargs .update (
2100- {"channel_id" : channel_id , "thread_ts" : thread_ts , "status" : status , "loading_messages" : loading_messages }
2103+ {
2104+ "channel_id" : channel_id ,
2105+ "thread_ts" : thread_ts ,
2106+ "status" : status ,
2107+ "loading_messages" : loading_messages ,
2108+ "icon_emoji" : icon_emoji ,
2109+ "icon_url" : icon_url ,
2110+ "username" : username ,
2111+ }
21012112 )
21022113 kwargs = _remove_none_values (kwargs )
21032114 return await self .api_call ("assistant.threads.setStatus" , json = kwargs )
@@ -2903,6 +2914,9 @@ async def chat_startStream(
29032914 recipient_user_id : Optional [str ] = None ,
29042915 chunks : Optional [Sequence [Union [Dict , Chunk ]]] = None ,
29052916 task_display_mode : Optional [str ] = None , # timeline, plan
2917+ icon_emoji : Optional [str ] = None ,
2918+ icon_url : Optional [str ] = None ,
2919+ username : Optional [str ] = None ,
29062920 ** kwargs ,
29072921 ) -> AsyncSlackResponse :
29082922 """Starts a new streaming conversation.
@@ -2917,6 +2931,9 @@ async def chat_startStream(
29172931 "recipient_user_id" : recipient_user_id ,
29182932 "chunks" : chunks ,
29192933 "task_display_mode" : task_display_mode ,
2934+ "icon_emoji" : icon_emoji ,
2935+ "icon_url" : icon_url ,
2936+ "username" : username ,
29202937 }
29212938 )
29222939 _parse_web_class_objects (kwargs )
@@ -2960,6 +2977,9 @@ async def chat_stream(
29602977 recipient_team_id : Optional [str ] = None ,
29612978 recipient_user_id : Optional [str ] = None ,
29622979 task_display_mode : Optional [str ] = None ,
2980+ icon_emoji : Optional [str ] = None ,
2981+ icon_url : Optional [str ] = None ,
2982+ username : Optional [str ] = None ,
29632983 ** kwargs ,
29642984 ) -> AsyncChatStream :
29652985 """Stream markdown text into a conversation.
@@ -2988,6 +3008,9 @@ async def chat_stream(
29883008 recipient_user_id: The encoded ID of the user to receive the streaming text. Required when streaming to channels.
29893009 task_display_mode: Specifies how tasks are displayed in the message. A "timeline" displays individual tasks
29903010 with text and "plan" displays all tasks together.
3011+ icon_emoji: Emoji to use as the icon for this message. Overrides icon_url.
3012+ icon_url: Image URL to use as the icon for this message.
3013+ username: The bot's username to display.
29913014 **kwargs: Additional arguments passed to the underlying API calls.
29923015
29933016 Returns:
@@ -3014,6 +3037,9 @@ async def chat_stream(
30143037 recipient_team_id = recipient_team_id ,
30153038 recipient_user_id = recipient_user_id ,
30163039 task_display_mode = task_display_mode ,
3040+ icon_emoji = icon_emoji ,
3041+ icon_url = icon_url ,
3042+ username = username ,
30173043 buffer_size = buffer_size ,
30183044 ** kwargs ,
30193045 )
0 commit comments