File tree Expand file tree Collapse file tree 1 file changed +4
-6
lines changed
src/uipath_langchain/chat Expand file tree Collapse file tree 1 file changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -188,7 +188,7 @@ def map_event(
188188 ),
189189 )
190190
191- elif message .content_blocks :
191+ if message .content_blocks :
192192 for block in message .content_blocks :
193193 block_type = block .get ("type" )
194194
@@ -273,10 +273,8 @@ def map_event(
273273 start = UiPathConversationContentPartStartEvent (
274274 mime_type = "text/plain"
275275 ),
276- chunk = UiPathConversationContentPartChunkEvent (
277- data = ""
278- ),
279- end = UiPathConversationContentPartEndEvent ()
276+ chunk = UiPathConversationContentPartChunkEvent (data = "" ),
277+ end = UiPathConversationContentPartEndEvent (),
280278 ),
281279 tool_call = UiPathConversationToolCallEvent (
282280 tool_call_id = message .tool_call_id ,
@@ -290,7 +288,7 @@ def map_event(
290288 output = UiPathInlineValue (inline = content_value ),
291289 ),
292290 ),
293- end = UiPathConversationMessageEndEvent ()
291+ end = UiPathConversationMessageEndEvent (),
294292 )
295293
296294 # Clean up the mapping after use
You can’t perform that action at this time.
0 commit comments