fix(action): clarify pending action intention context

This commit is contained in:
2026-04-27 15:51:42 +08:00
parent b0185c65c8
commit 04ceccc46f

View File

@@ -42,7 +42,7 @@ import java.util.concurrent.atomic.AtomicBoolean;
public class ActionPlanner extends AbstractAgentModule.Running<PartnerRunningFlowContext> { public class ActionPlanner extends AbstractAgentModule.Running<PartnerRunningFlowContext> {
private static final String IMMEDIATE_WATCHER_CRON = "0/5 * * * * ?"; private static final String IMMEDIATE_WATCHER_CRON = "0/5 * * * * ?";
private static final String TENDENCIES_EVALUATING_BLOCK_NAME = "tendencies_under_evaluation"; private static final String TENDENCIES_EVALUATING_BLOCK_NAME = "pending_action_intentions";
private final ActionAssemblyHelper assemblyHelper = new ActionAssemblyHelper(); private final ActionAssemblyHelper assemblyHelper = new ActionAssemblyHelper();
@@ -96,12 +96,12 @@ public class ActionPlanner extends AbstractAgentModule.Running<PartnerRunningFlo
)); ));
cognitionCapability.contextWorkspace().register(StateHintContent.createBlock(new StateHintContent( cognitionCapability.contextWorkspace().register(StateHintContent.createBlock(new StateHintContent(
"tendencies_under_evaluation", TENDENCIES_EVALUATING_BLOCK_NAME,
"Partner is evaluating whether any action tendency should be taken for the latest input." "Partner intends to handle the latest input through actions. When replying to the user, present this as Partner preparing to take action, not as an internal evaluation process."
) { ) {
@Override @Override
public void fillStateContent(@NotNull Document document, @NotNull Element stateElement) { public void fillStateContent(@NotNull Document document, @NotNull Element stateElement) {
appendListElement(document, stateElement, "tendencies", "tendency", tendencies); appendListElement(document, stateElement, "action_intentions", "action_intention", tendencies);
} }
})); }));
} }
@@ -111,7 +111,7 @@ public class ActionPlanner extends AbstractAgentModule.Running<PartnerRunningFlo
@Override @Override
protected void fillXml(@NotNull Document document, @NotNull Element root) { protected void fillXml(@NotNull Document document, @NotNull Element root) {
appendTextElement(document, root, "datetime", datetime); appendTextElement(document, root, "datetime", datetime);
appendTextElement(document, root, "abstract", "There are " + tendencies.size() + " candidate action tendencies under evaluation."); appendTextElement(document, root, "abstract", "There are " + tendencies.size() + " action intentions that Partner is preparing to handle.");
} }
}; };
} }