返回全部动态

LangChain4j 1.20.0 发布:支持非阻塞响应式与 Jackson 3

原标题:1.20.0 and 1.20.0-beta30

LangChain4j Releases一手来源产品发布质量 83

AI 摘要

LangChain4j 发布 1.20.0 和 1.20.0-beta30 版本,引入非阻塞/响应式支持,AI 服务方法可返回 CompletableFuture 或 Flow.Publisher 实现异步交互,并贯穿工具调用、记忆、护栏和检索全链路。同时新增 Jackson 3 可选支持,通过添加 langchain4j-jackson3 依赖即可切换 JSON 处理库。此外修复了多个存储、搜索和异常处理问题。

以上摘要由 AI 生成,可能存在误差。事实请以原文为准。

正文节选

## Notable Changes ### Non-blocking / reactive support by @dliubarskyi in https://github.com/langchain4j/langchain4j/pull/5527 An AI Service method used to hold its thread for the whole interaction - the model call, tool execution, memory I/O and guardrails. It can now return `CompletableFuture<T>`/`CompletionStage<T>` for a single response, or `Flow.Publisher<AiServiceStreamingEvent>`/`Flow.Publisher<String>` for streaming, and the interaction runs without blocking a thread. You choose th


发布时间:2026-09-04 20:27
抓取时间:2026-09-04 20:28
来源机构:LangChain4j
阅读原文github.com