mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +08:00
refactor(communication): adjust domains that involved in communication
This commit is contained in:
@@ -118,7 +118,7 @@ public class CommunicationProducer extends AbstractAgentModule.Running<PartnerRu
|
|||||||
|
|
||||||
private List<Message> buildChatMessages(PartnerRunningFlowContext runningFlowContext) {
|
private List<Message> buildChatMessages(PartnerRunningFlowContext runningFlowContext) {
|
||||||
ResolvedContext resolvedContext = cognitionCapability.contextWorkspace()
|
ResolvedContext resolvedContext = cognitionCapability.contextWorkspace()
|
||||||
.resolve(List.of(ContextBlock.VisibleDomain.COMMUNICATION));
|
.resolve(List.of(ContextBlock.VisibleDomain.COMMUNICATION, ContextBlock.VisibleDomain.MEMORY, ContextBlock.VisibleDomain.PERCEIVE, ContextBlock.VisibleDomain.ACTION));
|
||||||
List<BlockContent> communicationBlocks = resolvedContext.getBlocks();
|
List<BlockContent> communicationBlocks = resolvedContext.getBlocks();
|
||||||
List<Message> historyMessages = snapshotConversationMessages();
|
List<Message> historyMessages = snapshotConversationMessages();
|
||||||
List<Message> temp = new ArrayList<>(historyMessages.size() + 2);
|
List<Message> temp = new ArrayList<>(historyMessages.size() + 2);
|
||||||
|
|||||||
Reference in New Issue
Block a user