@@ -381,6 +381,7 @@ def hand_event_node_result(self, current_node, node_result_future):
381381 child_node = {}
382382 node_is_end = False
383383 view_type = current_node .view_type
384+ node_type = current_node .type
384385 if isinstance (r , dict ):
385386 content = r .get ('content' )
386387 child_node = {'runtime_node_id' : r .get ('runtime_node_id' ),
@@ -390,14 +391,16 @@ def hand_event_node_result(self, current_node, node_result_future):
390391 real_node_id = r .get ('real_node_id' )
391392 if r .__contains__ ('node_is_end' ):
392393 node_is_end = r .get ('node_is_end' )
394+ if r .__contains__ ('node_type' ):
395+ node_type = r .get ("node_type" )
393396 view_type = r .get ('view_type' )
394397 reasoning_content = r .get ('reasoning_content' )
395398 chunk = self .base_to_response .to_stream_chunk_response (self .params ['chat_id' ],
396399 self .params ['chat_record_id' ],
397400 current_node .id ,
398401 current_node .up_node_id_list ,
399402 content , False , 0 , 0 ,
400- {'node_type' : current_node . type ,
403+ {'node_type' : node_type ,
401404 'runtime_node_id' : runtime_node_id ,
402405 'view_type' : view_type ,
403406 'child_node' : child_node ,
0 commit comments