| Files | Last commit | Last update |
|---|---|---|
fix(memory,evaluator): 修复三处输入边界导致的运行时崩溃 - MemoryIndexManager.readFile: fromLine 超过文件总行数时钳制 start, 避免 subList(start, end) 抛出 IllegalArgumentException;end 的计算 使用 long 加法,避免大 lines 值 int 溢出 - ParseLlmResponse: 抽取统一的 parseNumericId 工具方法(Number 走 intValue,字符串走 parseInt),覆盖 resolveEntities 的 id、 parseEntityMerging 的 duplicate_ids、parseRelationMerging 的 duplicate_ids、dict2relation 的 source_id/target_id 五处解析点, 避免 LLM 返回 Double 型数字 id 时抛 NumberFormatException - BaseEvaluator.batchEvaluate: 空用例列表时钳制 numWorkers 至少为 1,避免 newFixedThreadPool(0) 抛出 IllegalArgumentException (agentevolving 与 dev_tools/tune 两处相同修复) | 3 days ago | |
fix(memory): support filesystem modes and safe line ranges Co-authored-by: changqianfeng<changqianfeng@126.com> # message auto-generated for no-merge-commit merge: !541 merge fix/issue-292-memory-fs-20261124 into develop fix(memory): support filesystem modes and safe line ranges Created-by: changqianfeng Commit-by: changqianfeng Merged-by: shenwei21 Description: Paired: [GitHub #663](https://github.com/openJiuwen-ai/agent-core-java/pull/663) ↔ [GitCode !541](https://gitcode.com/openJiuwen/agent-core-java/merge_requests/541) ## 问题 Fix #292。此前内存工具仅适配字符串模式签名,无法兼容真实文件系统的枚举模式 API;读取范围还可能被重复应用,越界和空结果也不符合约定。 ## 修改 - 优先按真实声明调用 FileMode 枚举签名;仅在方法确实声明时回退到字符串模式或单参数签名。 - 读取范围统一使用 1-based 索引,在 Java 层只裁剪一次;空文件、空区间和越界结果返回 start_line=0、end_line=0。 - 校验后端返回码并传播调用失败,避免将失败误报为成功。 - 写入与目录列举兼容真实文件系统签名,并补充 18 项回归测试。 ## 验证 - mvn -pl memory test:18 项新增回归测试通过。 - mvn -pl memory -am install -DskipTests && mvn -pl memory test:通过。 ## 提交签名 - [x] Bug 修复 - [x] 单元测试 <!-- bot4-pr-sync-meta schema_version: 1 source: gitcode gitcode_repo: openJiuwen/agent-core-java gitcode_mr: 541 github_repo: openJiuwen-ai/agent-core-java github_pr: 663 github_branch: sync/pr-541 --> <!-- related-issues --> Linked Closing Issues: - [#292](https://gitcode.com/openJiuwen/agent-core-java/issues/292) <!-- /related-issues --> See merge request: openJiuwen/agent-core-java!541 | 5 days ago |