Solon v4.0.2

solon-ai-talent-memory

</> markdown
2026年6月10日 下午10:41:20
<dependency>
    <groupId>org.noear</groupId>
    <artifactId>solon-ai-talent-memory</artifactId>
</dependency>

1、描述

Solon AI 技能扩展,提供基于自演进心智模型的长期记忆技能,支持会话隔离。内置有 MemoryTalent

  • MemoryTalent:基于自演进心智模型的长期记忆技能

2、应用示例

  • MemoryTalent
AgentSession session = InMemoryAgentSession.of("user-1");

MemoryTalent memTalent= new MemoryTalent(...);

SimpleAgent agent = SimpleAgent.of(chatModel)
                .role("记忆助手")
                .defaultTalentAdd(memTalent)
                .build();
                
agent.prompt("我的幸运数字是 888,请记住它。").session(session).call();

agent.prompt("我之前告诉过你我的幸运数字是多少吗?").session(session).call()