Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(core): Add an option to allow community nodes as tools #13075

Merged
merged 2 commits into from
Feb 6, 2025

Conversation

netroy
Copy link
Member

@netroy netroy commented Feb 5, 2025

Summary

This PR adds an option to let n8n instances use community nodes as AI tools, when the node has usableAsTool set to true. This PR also adds an additional check to prevent n8n from creating virtual tools out of nodes that already have a supplyData method.

Related Linear tickets, Github issues, and Community forum posts

AI-406

Review / Merge checklist

  • PR title and summary are descriptive. (conventions)
  • Docs updated or follow-up ticket created.
  • Tests included.
  • PR Labeled with release/backport (if the PR is an urgent fix that needs to be backported)

@n8n-assistant n8n-assistant bot added core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team labels Feb 5, 2025
@netroy netroy force-pushed the AI-406-allow-custom-nodes-as-tools branch from 3cc5df1 to 2f32bc7 Compare February 5, 2025 13:00
Copy link

codecov bot commented Feb 5, 2025

Codecov Report

Attention: Patch coverage is 90.00000% with 1 line in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
packages/cli/src/node-types.ts 90.00% 0 Missing and 1 partial ⚠️

📢 Thoughts on this report? Let us know!

@netroy netroy marked this pull request as ready for review February 5, 2025 13:13
Copy link
Contributor

@jeanpaul jeanpaul left a comment

Choose a reason for hiding this comment

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

🚀

Copy link
Contributor

github-actions bot commented Feb 6, 2025

✅ All Cypress E2E specs passed

Copy link

cypress bot commented Feb 6, 2025

n8n    Run #9164

Run Properties:  status check passed Passed #9164  •  git commit de005f9a55: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Project n8n
Branch Review AI-406-allow-custom-nodes-as-tools
Run status status check passed Passed #9164
Run duration 04m 33s
Commit git commit de005f9a55: 🌳 🖥️ browsers:node18.12.0-chrome107 🤖 netroy 🗃️ e2e/*
Committer कारतोफ्फेलस्क्रिप्ट™
View all properties for this run ↗︎

Test results
Tests that failed  Failures 0
Tests that were flaky  Flaky 1
Tests that did not run due to a developer annotating a test with .skip  Pending 5
Tests that did not run due to a failure in a mocha hook  Skipped 0
Tests that passed  Passing 433
View all changes introduced in this branch ↗︎

@netroy netroy merged commit 2b133aa into master Feb 6, 2025
37 checks passed
@netroy netroy deleted the AI-406-allow-custom-nodes-as-tools branch February 6, 2025 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Enhancement outside /nodes-base and /editor-ui n8n team Authored by the n8n team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants