mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
feat(ActionExecutor): support executing interventions in ActionExecutor
This commit is contained in:
@@ -94,7 +94,7 @@ public class ActionExecutor extends AgentRunningSubModule<ActionExecutorInput, V
|
||||
// 针对行动链进行修正,修正需要传入执行历史、行动目标等内容
|
||||
val correctorInput = assemblyHelper.buildCorrectorInput(actionData, userId);
|
||||
val correctorResult = actionCorrector.execute(correctorInput);
|
||||
// TODO 修正内容如何生效?以何种形式生效?
|
||||
actionCapability.handleInterventions(correctorResult.getMetaInterventionList(), phaserRecord);
|
||||
} while (actionChain.size() > ++stageCount);
|
||||
|
||||
// 结束
|
||||
|
||||
@@ -1,7 +1,11 @@
|
||||
package work.slhaf.partner.module.modules.action.dispatcher.executor.entity;
|
||||
|
||||
import lombok.Data;
|
||||
import work.slhaf.partner.module.modules.action.interventor.entity.MetaIntervention;
|
||||
|
||||
import java.util.List;
|
||||
|
||||
@Data
|
||||
public class CorrectorResult {
|
||||
private List<MetaIntervention> metaInterventionList;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user