mirror of https://gitee.com/dromara/liteFlow
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> |
||
|---|---|---|
| .. | ||
| src/main/java/com/yomahub/liteflow/agent | ||
| pom.xml | ||