- 更新了WebSocket服务器的启动逻辑

- 发现了agent, websocket, interactionHub之间的循环引用导致IDEA调试出错问题,通过exclude解决
- 实现了CoreModel的execute执行逻辑,并且系统提示词将动态拼接以适应不同模块
- 移动EvaluatedSlice至shared/memory包下,避免层级混淆
- 提取清洗json方法至独立的工具类
- 将agent通过InputReceiver接口暴露至socketServer,而非直接交给其完整实例
- 调整模块加载时机->InteractionHub加载时进行加载
- 调整MemoryGraph中userDialogMap的结构,换用以用户id为主键
- 初步进行测试,记忆更新逻辑暂未实现
This commit is contained in:
2025-04-25 23:08:01 +08:00
parent 4e28adbc52
commit a83cf26f40
26 changed files with 328 additions and 82 deletions

View File

@@ -1,12 +1,10 @@
package memory;
import cn.hutool.core.date.LocalDateTimeUtil;
import org.junit.jupiter.api.Test;
import work.slhaf.agent.core.memory.MemoryGraph;
import work.slhaf.agent.core.memory.node.TopicNode;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.HashMap;
import java.util.concurrent.ConcurrentHashMap;
@@ -50,7 +48,7 @@ public void test1() {
// 输出
graph.setTopicNodes(topicMap);
graph.printTopicTree();
System.out.println(graph.getTopicTree());
}