feat(ActionExecutor): support executing interventions in ActionExecutor

This commit is contained in:
2026-01-30 20:58:12 +08:00
parent 63d1552de2
commit 04e8d9e531
2 changed files with 5 additions and 1 deletions

View File

@@ -94,7 +94,7 @@ public class ActionExecutor extends AgentRunningSubModule<ActionExecutorInput, V
// 针对行动链进行修正,修正需要传入执行历史、行动目标等内容 // 针对行动链进行修正,修正需要传入执行历史、行动目标等内容
val correctorInput = assemblyHelper.buildCorrectorInput(actionData, userId); val correctorInput = assemblyHelper.buildCorrectorInput(actionData, userId);
val correctorResult = actionCorrector.execute(correctorInput); val correctorResult = actionCorrector.execute(correctorInput);
// TODO 修正内容如何生效?以何种形式生效? actionCapability.handleInterventions(correctorResult.getMetaInterventionList(), phaserRecord);
} while (actionChain.size() > ++stageCount); } while (actionChain.size() > ++stageCount);
// 结束 // 结束

View File

@@ -1,7 +1,11 @@
package work.slhaf.partner.module.modules.action.dispatcher.executor.entity; package work.slhaf.partner.module.modules.action.dispatcher.executor.entity;
import lombok.Data; import lombok.Data;
import work.slhaf.partner.module.modules.action.interventor.entity.MetaIntervention;
import java.util.List;
@Data @Data
public class CorrectorResult { public class CorrectorResult {
private List<MetaIntervention> metaInterventionList;
} }