Skip to content

Conversation

@vblagoje
Copy link
Member

Why:

Add integration tests for ToolsType Haystack 2.19 updates

part of:

What:

  • Added tests for mixed tool collection initialization and request parameter formatting

How did you test it:

  • Integration tests verify mixed Tool/Toolset usage
  • Backward compatibility validated for existing patterns (list of tools, single toolset)

@vblagoje vblagoje requested a review from a team as a code owner October 21, 2025 14:08
@vblagoje vblagoje requested review from Amnah199 and removed request for a team October 21, 2025 14:08
@github-actions github-actions bot added integration:nvidia type:documentation Improvements or additions to documentation labels Oct 21, 2025
Comment on lines 427 to 429
# Pass echo_tool as a list at runtime - runtime tools should take precedence
messages = [ChatMessage.from_user("Echo this: Hello World")]
results = component.run(messages, tools=[echo_tool])
Copy link
Contributor

Choose a reason for hiding this comment

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

Same comment about mixing tools and toolsets at runtime.

Copy link
Member Author

Choose a reason for hiding this comment

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

but this one is different: there is no mention of tools and we need to wrap single tool into a list

Comment on lines 337 to 338
def test_integration_mixing_init_and_runtime_tools(self):
"""Test mixing tools from init and runtime by passing tools to both __init__ and run()."""
Copy link
Contributor

Choose a reason for hiding this comment

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

I am not sure if this test was intended. We can rather have a test for ser/deser of mixed tool lists like in GoogleGenAiChatGenerator.

Copy link
Contributor

Choose a reason for hiding this comment

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

@vblagoje lets remove this test. I still dont see the need of keeping it. The rest looks good.

@vblagoje vblagoje requested a review from Amnah199 October 22, 2025 08:28
@vblagoje vblagoje merged commit 51a0520 into main Oct 23, 2025
7 checks passed
@vblagoje vblagoje deleted the nvidia-toolstype branch October 23, 2025 09:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

integration:nvidia type:documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants