Skip to content

chore: Move HITL to underneath the Hooks module - #11974

Merged
sjrl merged 2 commits into
mainfrom
move-hitl-into-hooks
Jul 13, 2026
Merged

chore: Move HITL to underneath the Hooks module#11974
sjrl merged 2 commits into
mainfrom
move-hitl-into-hooks

Conversation

@sjrl

@sjrl sjrl commented Jul 13, 2026

Copy link
Copy Markdown
Contributor

Related Issues

  • fixes something I discussed with @julian-risch and @anakin87 about moving the Human in the Loop module to live inside of the Hooks module alongside the other pre-built Tool Result Offloading hook.

Proposed Changes:

  • Move the HITL module to underneath the Hooks module.
  • Update tests, reno to indicate the new import path, and the MIGRATION guide
  • Update docs to reflect the new structure

How did you test it?

Existing tests

Notes for the reviewer

Checklist

  • I have read the contributors guidelines and the code of conduct.
  • I have updated the related issue with new insights and changes.
  • I have added unit tests and updated the docstrings.
  • I've used one of the conventional commit types for my PR title: fix:, feat:, build:, chore:, ci:, docs:, style:, refactor:, perf:, test: and added ! in case the PR includes breaking changes.
  • I have documented my code.
  • I have added a release note file, following the contributors guidelines.
  • I have run pre-commit hooks and fixed any issue.

@sjrl
sjrl requested review from a team as code owners July 13, 2026 07:52
@sjrl
sjrl requested review from anakin87 and removed request for a team July 13, 2026 07:52
@vercel

vercel Bot commented Jul 13, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
haystack-docs Ignored Ignored Preview Jul 13, 2026 9:03am

Request Review

@anakin87 anakin87 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you!

The OpenAI fix is in #11978

@github-actions

Copy link
Copy Markdown
Contributor

Coverage report

Click to see where and how coverage changed

FileStatementsMissingCoverageCoverage
(new stmts)
Lines missing
  haystack/hooks/human_in_the_loop
  hooks.py
  policies.py
  strategies.py
  user_interfaces.py
  haystack/hooks/human_in_the_loop/types
  protocol.py
Project Total  

This report was generated by python-coverage-comment-action

@sjrl
sjrl enabled auto-merge (squash) July 13, 2026 09:06
@sjrl
sjrl merged commit 86d4697 into main Jul 13, 2026
27 checks passed
@sjrl
sjrl deleted the move-hitl-into-hooks branch July 13, 2026 09:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants