Skip to content

Conversation

@marinoska
Copy link
Contributor

@marinoska marinoska commented Oct 8, 2025

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

What is the current behavior?

When preparing agent execution, both static and dynamic tools are merged and passed to toolManager.prepareToolsForGeneration. This causes each tool (e.g., getWeather) to appear twice, since dynamic clones are added even for non-dynamic tools.

What is the new behavior?

Only dynamic tools should be passed to prepareToolsForGeneration

fixes (issue)
#668

Notes for reviewers

@changeset-bot
Copy link

changeset-bot bot commented Oct 8, 2025

🦋 Changeset detected

Latest commit: 88ab6fb

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@voltagent/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@marinoska marinoska force-pushed the fix-duplicate-static-tools branch 4 times, most recently from 3aa77d1 to c3fa01b Compare October 8, 2025 23:25
@marinoska marinoska force-pushed the fix-duplicate-static-tools branch from c3fa01b to 88ab6fb Compare October 8, 2025 23:30
@marinoska marinoska marked this pull request as ready for review October 8, 2025 23:45
Copy link
Member

@omeraplak omeraplak left a comment

Choose a reason for hiding this comment

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

Thank you 🎯

@omeraplak omeraplak merged commit 6d00793 into VoltAgent:main Oct 9, 2025
20 checks passed
@omeraplak omeraplak linked an issue Oct 9, 2025 that may be closed by this pull request
@marinoska marinoska deleted the fix-duplicate-static-tools branch October 9, 2025 14:18
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.

[BUG] Duplicate tools added during agent preparation

2 participants