返回全部动态
Haystack v3.1.0-rc1 发布:Agent 上下文压缩与多项破坏性变更
原标题:v3.1.0-rc1
AI 摘要
Haystack 发布 v3.1.0-rc1 版本,包含多项破坏性变更和新功能。主要变更包括:Agent 的 exit_reason 成为保留状态键、state_schema 属性行为调整、PipelineSnapshot 输入格式变化、不安全组件加载限制、SentenceWindowRetriever 参数校验等。新功能方面,为 Agent 增加了实验性的上下文压缩机制(CompactionHook),并支持 PDF 链接解析。
以上摘要由 AI 生成,可能存在误差。事实请以原文为准。
正文节选
# Release Notes ## v3.1.0-rc1 ### Upgrade Notes - `exit_reason` is now a reserved state key on `Agent`. If you defined a custom `state_schema` key named `exit_reason`, rename it: the Agent now raises a `ValueError` at initialization when a reserved key is redefined. - `Agent.state_schema` now contains the user-provided state schema, exactly as passed to `__init__`. Previously it contained the resolved schema, which also included `messages` and the keys the Agent manages internally (`step_cou
发布时间:2026-08-18 17:09
抓取时间:2026-08-18 17:22
来源机构:deepset