File tree Expand file tree Collapse file tree 4 files changed +19
-6
lines changed
packages/service/core/workflow/dispatch Expand file tree Collapse file tree 4 files changed +19
-6
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,10 @@ export const runToolWithFunctionCall = async (
194
194
isEntry : true ,
195
195
inputs : updateToolInputValue ( { params : startParams , inputs : item . inputs } )
196
196
}
197
- : item
197
+ : {
198
+ ...item ,
199
+ isEntry : false
200
+ }
198
201
)
199
202
} ) ;
200
203
Original file line number Diff line number Diff line change @@ -226,7 +226,10 @@ export const runToolWithPromptCall = async (
226
226
isEntry : true ,
227
227
inputs : updateToolInputValue ( { params : startParams , inputs : item . inputs } )
228
228
}
229
- : item
229
+ : {
230
+ ...item ,
231
+ isEntry : false
232
+ }
230
233
)
231
234
} ) ;
232
235
Original file line number Diff line number Diff line change @@ -209,7 +209,10 @@ export const runToolWithToolChoice = async (
209
209
isEntry : true ,
210
210
inputs : updateToolInputValue ( { params : startParams , inputs : item . inputs } )
211
211
}
212
- : item
212
+ : {
213
+ ...item ,
214
+ isEntry : false
215
+ }
213
216
)
214
217
} ) ;
215
218
@@ -359,6 +362,7 @@ export const runToolWithToolChoice = async (
359
362
} ;
360
363
}
361
364
} catch ( error ) {
365
+ console . log ( error ) ;
362
366
addLog . warn ( `LLM response error` , {
363
367
requestBody
364
368
} ) ;
Original file line number Diff line number Diff line change @@ -532,9 +532,12 @@ export async function dispatchWorkFlow(data: Props): Promise<DispatchFlowRespons
532
532
const entryNodes = runtimeNodes . filter ( ( item ) => item . isEntry ) ;
533
533
534
534
// reset entry
535
- // runtimeNodes.forEach((item) => {
536
- // item.isEntry = false;
537
- // });
535
+ runtimeNodes . forEach ( ( item ) => {
536
+ // Interactive node is not the entry node, return interactive result
537
+ if ( item . flowNodeType !== FlowNodeTypeEnum . userSelect ) {
538
+ item . isEntry = false ;
539
+ }
540
+ } ) ;
538
541
await Promise . all ( entryNodes . map ( ( node ) => checkNodeCanRun ( node ) ) ) ;
539
542
540
543
// focus try to run pluginOutput
You can’t perform that action at this time.
0 commit comments