Skip to content

Conversation

@sjrl
Copy link
Contributor

@sjrl sjrl commented Jan 16, 2026

Related Issues

  • fixes #issue-number

Proposed Changes:

@anakin87 and @mpangrazzi I'm reverting to @mpangrazzi's original proposal for updating the ConfirmationStrategy protocol. After re-looking at the code I realize the confirmation_strategy_context is indeed a hard-required runtime param that needs to be supported even if not used.

I thought the simplest thing to do right now is to make it explicit in the protocol especially since we don't have an easy way for users to pass arbitrary additional kwargs to the underlying run of the confirmation strategy.

How did you test it?

  • Existing tests
  • Ran type checking on test_agent.py file to help catch some errors in the protocol and implemenations

Notes for the reviewer

Checklist

@sjrl sjrl requested a review from a team as a code owner January 16, 2026 13:13
@sjrl sjrl requested review from anakin87, davidsbatista and mpangrazzi and removed request for a team and davidsbatista January 16, 2026 13:13
@sjrl sjrl self-assigned this Jan 16, 2026
@coveralls
Copy link

Pull Request Test Coverage Report for Build 21067791473

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 13 unchanged lines in 1 file lost coverage.
  • Overall coverage remained the same at 68.182%

Files with Coverage Reduction New Missed Lines %
components/agents/human_in_the_loop/strategies.py 13 90.26%
Totals Coverage Status
Change from base Build 21050980195: 0.0%
Covered Lines: 915
Relevant Lines: 1342

💛 - Coveralls

Copy link
Member

@anakin87 anakin87 left a comment

Choose a reason for hiding this comment

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

OK for me.

I probably pushed in this direction without fully knowing how it works...

Also interested in hearing @mpangrazzi's opinion...

Copy link
Contributor

@mpangrazzi mpangrazzi left a comment

Choose a reason for hiding this comment

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

@sjrl makes sense to me. Looks good!

@sjrl
Copy link
Contributor Author

sjrl commented Jan 20, 2026

Thanks for the review! I added these changes directly to deepset-ai/haystack#10403 so closing this.

@sjrl sjrl closed this Jan 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants