mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 08:43:02 +08:00
refactor(context): remove legacy attribute coreResponse in PartnerRunningFlowContext
This commit is contained in:
@@ -89,10 +89,6 @@ public class CommunicationProducer extends AbstractAgentModule.Running<PartnerRu
|
||||
cognitionCapability.contextWorkspace().register(block);
|
||||
}
|
||||
|
||||
private void updateCoreResponse(PartnerRunningFlowContext runningFlowContext, String responseText) {
|
||||
runningFlowContext.getCoreResponse().put("text", responseText);
|
||||
}
|
||||
|
||||
private List<Message> buildChatMessages(PartnerRunningFlowContext runningFlowContext) {
|
||||
ResolvedContext resolvedContext = cognitionCapability.contextWorkspace()
|
||||
.resolve(List.of(ContextBlock.VisibleDomain.COMMUNICATION, ContextBlock.VisibleDomain.MEMORY, ContextBlock.VisibleDomain.PERCEIVE, ContextBlock.VisibleDomain.ACTION));
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
package work.slhaf.partner.runtime.interaction.data.context
|
||||
|
||||
import com.alibaba.fastjson2.JSONObject
|
||||
import work.slhaf.partner.framework.agent.interaction.flow.RunningFlowContext
|
||||
|
||||
class PartnerRunningFlowContext private constructor(
|
||||
@@ -39,7 +38,4 @@ class PartnerRunningFlowContext private constructor(
|
||||
putUserInfo(InfoKeys.NICKNAME, SOURCE_SELF_NICKNAME)
|
||||
}
|
||||
}
|
||||
|
||||
val coreResponse = JSONObject()
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user