Skip to content

Conversation

@srini047
Copy link
Contributor

@srini047 srini047 commented Feb 6, 2026

Related Issues

Proposed Changes:

Make use of tuple based key for confirmation_strategies at the same time still accept str for backward compatibility.

How did you test it?

Run all tests to ensure no breakage and add new test to validate multiple tool call.

Notes to the reviewer

Not sure how to link a issue from haystack-experimental

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.

@vercel
Copy link

vercel bot commented Feb 6, 2026

@srini047 is attempting to deploy a commit to the deepset Team on Vercel.

A member of the Team first needs to authorize it.

@github-actions github-actions bot added topic:tests type:documentation Improvements on the docs labels Feb 6, 2026
@coveralls
Copy link
Collaborator

coveralls commented Feb 7, 2026

Pull Request Test Coverage Report for Build 21859363526

Warning: This coverage report may be inaccurate.

This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.

Details

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 23 unchanged lines in 2 files lost coverage.
  • Overall coverage increased (+0.001%) to 92.573%

Files with Coverage Reduction New Missed Lines %
components/agents/agent.py 10 96.69%
human_in_the_loop/strategies.py 13 90.51%
Totals Coverage Status
Change from base Build 21756546334: 0.001%
Covered Lines: 14957
Relevant Lines: 16157

💛 - Coveralls

@srini047 srini047 marked this pull request as ready for review February 7, 2026 05:59
@srini047 srini047 requested a review from a team as a code owner February 7, 2026 05:59
@srini047 srini047 requested review from julian-risch and removed request for a team February 7, 2026 05:59
@vercel
Copy link

vercel bot commented Feb 10, 2026

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 Feb 10, 2026 8:52am

Request Review

Copy link
Member

@julian-risch julian-risch left a comment

Choose a reason for hiding this comment

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

@srini047 The code changes look good to me! I only added an example to the release note. Thank you for your contribution! I will merge this PR.

function=multiplication_tool, name="multiplication_tool", description="A tool that multiplies two integers."
)

return [add_tool, mult_tool]
Copy link
Member

Choose a reason for hiding this comment

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

Changing this fixture here looks good to me. In general, we need to be careful because of side effects on other tests that use this fixture. In particular, test_confirmation_strategy_context_passed_to_strategy_async is using tools. The change seems okay to me but next time I would recommend creating a separate fixture to prevent any unwanted effects on other tests.

@julian-risch julian-risch merged commit 8d1ba6b into deepset-ai:main Feb 10, 2026
19 of 20 checks passed
julian-risch added a commit that referenced this pull request Feb 11, 2026
…egy (#10522)

* feat: allow grouping multiple tools under a single confirmation strategy

* fix: revert unrelated change

* fix: add rn

* fix: refactor fixture logic

* fix: cosmetic change

* extend release note with an example

---------

Co-authored-by: Julian Risch <julian.risch@deepset.ai>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic:tests type:documentation Improvements on the docs

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Allow grouping multiple tools under a single confirmation strategy

3 participants