refactor(action): optimize resolved context domains

This commit is contained in:
2026-04-21 17:21:59 +08:00
parent 3d56966381
commit 45f7d1c51e
3 changed files with 3 additions and 0 deletions

View File

@@ -111,6 +111,7 @@ public class ActionCorrectionRecognizer extends AbstractAgentModule.Sub<Correcto
private Message resolveContextMessage() { private Message resolveContextMessage() {
return cognitionCapability.contextWorkspace().resolve(List.of( return cognitionCapability.contextWorkspace().resolve(List.of(
ContextBlock.FocusedDomain.COMMUNICATION, ContextBlock.FocusedDomain.COMMUNICATION,
ContextBlock.FocusedDomain.PERCEIVE,
ContextBlock.FocusedDomain.MEMORY ContextBlock.FocusedDomain.MEMORY
)).encodeToMessage(); )).encodeToMessage();
} }

View File

@@ -128,6 +128,7 @@ public class ActionCorrector extends AbstractAgentModule.Sub<CorrectorInput, Res
private Message resolveContextMessage() { private Message resolveContextMessage() {
return cognitionCapability.contextWorkspace().resolve(List.of( return cognitionCapability.contextWorkspace().resolve(List.of(
ContextBlock.FocusedDomain.COMMUNICATION, ContextBlock.FocusedDomain.COMMUNICATION,
ContextBlock.FocusedDomain.PERCEIVE,
ContextBlock.FocusedDomain.MEMORY ContextBlock.FocusedDomain.MEMORY
)).encodeToMessage(); )).encodeToMessage();
} }

View File

@@ -99,6 +99,7 @@ public class ParamsExtractor extends AbstractAgentModule.Sub<ExtractorInput, Res
return cognitionCapability.contextWorkspace() return cognitionCapability.contextWorkspace()
.resolve(List.of( .resolve(List.of(
ContextBlock.FocusedDomain.ACTION, ContextBlock.FocusedDomain.ACTION,
ContextBlock.FocusedDomain.PERCEIVE,
ContextBlock.FocusedDomain.COMMUNICATION, ContextBlock.FocusedDomain.COMMUNICATION,
ContextBlock.FocusedDomain.MEMORY ContextBlock.FocusedDomain.MEMORY
)) ))