MaaFramework icon indicating copy to clipboard operation
MaaFramework copied to clipboard

interrupt能完美替代is_sub吗

Open Tziheng opened this issue 4 months ago • 2 comments

我看教程里说is_sub已经废弃,但是想实现一个类似于next : [sub_A,B,sub_C,D] 这样的流程,interrupt能实现吗,我无法只用interrupt实现这样的流程。

Tziheng avatar Sep 26 '25 18:09 Tziheng

目前这种无法用 interrupt 代替,不过想替代也可以用 next 串联起来。

"Start": {
    "next": [ "A", "B", "C", "D" ]
},
"A": {
    "next": [ "A", "B", "C", "D" ]
},
"B": {
    "next": [ "B.next" ]
},
"C": {
    "next": [ "A", "B", "C", "D" ]
},
"D": {
    "next": [ "D.next" ]
}

目前 is_sub 应该暂时不会删,可以先用着,后续可能出新的字段来标记 next 中需要达到 sub 效果的节点

Windsland52 avatar Sep 27 '25 03:09 Windsland52

删 is_sub 不是为了找个平替,而是希望开发者把更多复杂的流程放到 agent 中自己实现,依赖 pipeline 实现复杂的流程不是好的做法

MistEO avatar Sep 27 '25 04:09 MistEO

有新的[JumpBack]了

Windsland52 avatar Nov 27 '25 14:11 Windsland52