mirror of
https://github.com/slhaf/Partner.git
synced 2026-05-12 16:53:04 +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);
|
cognitionCapability.contextWorkspace().register(block);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void updateCoreResponse(PartnerRunningFlowContext runningFlowContext, String responseText) {
|
|
||||||
runningFlowContext.getCoreResponse().put("text", responseText);
|
|
||||||
}
|
|
||||||
|
|
||||||
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, ContextBlock.VisibleDomain.MEMORY, ContextBlock.VisibleDomain.PERCEIVE, ContextBlock.VisibleDomain.ACTION));
|
.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
|
package work.slhaf.partner.runtime.interaction.data.context
|
||||||
|
|
||||||
import com.alibaba.fastjson2.JSONObject
|
|
||||||
import work.slhaf.partner.framework.agent.interaction.flow.RunningFlowContext
|
import work.slhaf.partner.framework.agent.interaction.flow.RunningFlowContext
|
||||||
|
|
||||||
class PartnerRunningFlowContext private constructor(
|
class PartnerRunningFlowContext private constructor(
|
||||||
@@ -39,7 +38,4 @@ class PartnerRunningFlowContext private constructor(
|
|||||||
putUserInfo(InfoKeys.NICKNAME, SOURCE_SELF_NICKNAME)
|
putUserInfo(InfoKeys.NICKNAME, SOURCE_SELF_NICKNAME)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val coreResponse = JSONObject()
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user