liteFlow/liteflow-react-agent
everywhere.z b9739a1249 chore(agent): 被取代的 session/memory 配置键标 @Deprecated + 启动告警
agentscope v2 下 agent 为无状态单例 + AgentStateStore,以下 6 键已失效,
按迁移决议保留但标 @Deprecated(forRemoval=true,since=2.16.0) 并启动期 WARN 引导移除:

SessionConfig:
- maxSessions / idleTimeout / cleanupInterval(JVM 内 agent 实例 LRU/空闲清理不再存在)

MemoryStorageConfig:
- loadOnFirstUse / saveAfterCall / saveOnError(v2 每次 call() 自动 load/save AgentState)

不改类型/默认值/getter;不改 MemoryStorageMode/mode(仍有效,映射到 AgentStateStore)。

新增 AgentConfigDeprecationLogger.warnOnce(cfg):JVM once(AtomicBoolean CAS),
对 6 键比对默认值,非默认者 WARN(键名+值+迁移指引);ReactAgentFactory.getOrCreate
首次构建前调用。默认配置不告警,既有 agent 不受影响。

测试 AgentConfigDeprecationLoggerTest(logback ListAppender 捕获):
非默认→告警、默认→不告警、warnOnce 二次不重复、mode 不告警、null session 不抛。
AgentConfigDeprecationLoggerTest + ProcessIntegrationTest 共 7 用例全 PASS。

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-20 12:07:03 +08:00
..
liteflow-react-agent-anthropic liteflow-react-agent pom 添加 name 2026-06-05 00:15:33 +08:00
liteflow-react-agent-core chore(agent): 被取代的 session/memory 配置键标 @Deprecated + 启动告警 2026-06-20 12:07:03 +08:00
liteflow-react-agent-dashscope liteflow-react-agent pom 添加 name 2026-06-05 00:15:33 +08:00
liteflow-react-agent-gemini liteflow-react-agent pom 添加 name 2026-06-05 00:15:33 +08:00
liteflow-react-agent-openai liteflow-react-agent pom 添加 name 2026-06-05 00:15:33 +08:00
pom.xml liteflow react agent pom adjust 2026-04-30 23:52:19 +08:00