feat: Expose the current hook point in Agent State
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
调研方向
The issue asks for Agent to expose the current hook point in State before hooks run, but it names no source files or tests. Read the Agent hook execution and State implementation to find where hook points are dispatched and how State values are exposed. Done means hooks can read the current point, such as before_llm or after_tool, and tests cover that behavior. This issue is marked for internal handling and is not open to external contributions.
由索引模型根据 Issue 内容生成。
描述
Is your feature request related to a problem? Please describe.
A hook can't tell which hook point it is running at. A hook registered at several points has no way to change its behavior per point.
Example: PresidioPIIHook appended a system reminder after blocked messages. At after_tool, if the blocked result came from an exit-condition tool, the reminder became the Agent's last_message. The hook couldn't detect that it was running at after_tool, so it couldn't skip the reminder. We worked around it in deepset-ai/haystack-core-integrations#4360.
Describe the solution you'd like
Have the Agent write the current hook point (e.g. before_llm, after_tool) to State before running hooks, so a hook can read it if it needs to.
Additional context
Discussion: https://github.com/deepset-ai/haystack-core-integrations/pull/4360#issuecomment-7275496964
👋 Hello there! This issue will be handled internally and isn't open for external contributions. If you'd like to contribute, please take a look at issues labeled contributions welcome or good first issue. We'd really appreciate it!
- 主要语言
- Python
- 星标
- 27.2k
- 派生
- 3.5k
- 平均合并
- 1 天 18 小时
- 30 天内合并 PR
- 254
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
deepset-ai/haystack 的其他 Issue
-
feat: `ByteStream.from_file_path` should keep the file path in `meta`可能已有人在做 @pinjun99 于 2 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 74/100
deepset-ai/haystack#14081 · 3 条评论 ·
维护者通常 1 天内回复
-
BlockingConfirmationStrategy ignores an empty argument replacement可能已有人在做 @sjrl 于 6 天前认领。 未关闭P1
难度 1/5 1-3 小时 新手友好度 82/100
deepset-ai/haystack#13863 · 2 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
CSVToDocument row mode fails on CR-separated CSV input可能已有人在做 @julian-risch 于 66 天前认领。 未关闭P3
难度 2/5 1-3 小时 新手友好度 86/100
deepset-ai/haystack#13022 · 1 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
-
CSVToDocument row mode drops a real extra_columns field on ragged rows可能重新可做 关联的 PR 已关闭且未合并。 未关闭handled internally P3
难度 2/5 1-3 小时 新手友好度 78/100
deepset-ai/haystack#12994 · 1 条评论 ·
维护者通常 1 天内回复
-
CSVDocumentCleaner deletes a row that says N/A, and both CSV components empty those cells可能已有人在做 @michaelkillgta 于 72 天前认领。 未关闭P3
难度 2/5 1-3 小时 新手友好度 88/100
deepset-ai/haystack#12784 · 3 条评论 ·
维护者通常 1 天内回复
查看 deepset-ai/haystack 的全部 Issue
相似的 Issue
-
Test: to_hijri() accepts datetime.datetime and uses only the date part可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭good first issue
难度 1/5 1 小时以内 新手友好度 95/100
omarelshamy25x/shamy-hijri#63 · 3 条评论 ·
维护者通常 1 天内回复
-
polish
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
521xueweihan/HelloGitHub#4729 ·
-
[Bug]: Score parser reads parts of scientific notation as valid scores可能已有人在做 @AshutoshSingh840 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
UKGovernmentBEIS/control-arena#992 ·
维护者通常 3 天内回复
-
难度 1/5 1 小时以内 新手友好度 92/100
mvalentsev/awesome-free-ai-coding#70 ·
维护者通常 1 天内回复