Files
n8n/packages/@n8n/ai-utilities
alighasami 3d5eaf9445
Some checks failed
Security: Sync from Public / sync-from-public (push) Has been cancelled
Test: Benchmark Nightly / build (push) Has been cancelled
Test: Benchmark Nightly / Notify Cats on failure (push) Has been cancelled
CI: Python / Checks (push) Has been cancelled
Test: Evals Python / Workflow Comparison Python (push) Has been cancelled
Util: Check Docs URLs / check-docs-urls (push) Has been cancelled
Test: Visual Storybook / Cloudflare Pages (push) Has been cancelled
Test: E2E Performance / build-and-test-performance (push) Has been cancelled
Test: Workflows Nightly / Run Workflow Tests (push) Has been cancelled
Util: Cleanup CI Docker Images / Delete stale CI images (push) Has been cancelled
Test: Benchmark Destroy Env / build (push) Has been cancelled
Util: Update Node Popularity / update-popularity (push) Has been cancelled
Test: E2E Coverage Weekly / Coverage Tests (push) Has been cancelled
first commit
2026-03-17 16:22:57 +03:30
..
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30
2026-03-17 16:22:57 +03:30

@n8n/ai-utilities

Core utilities and abstractions for AI functionality in n8n. This package provides the foundational building blocks used internally by the n8n platform.

This package is reexported from @n8n/ai-node-sdk, that exposes methods and types for public usage.

When changing logic in this package, make sure your changes are backwards compatible. What that means:

  • don't remove existing interfaces or properties in them
  • make new properties optional or create new versions of interfaces
  • publicly exposed methods should handle both old and new interfaces
  • when making a breaking change or adding a new public helper function that is exported in @n8n/ai-node-sdk, make sure to update AI_NODE_SDK_VERSION in ai-node-sdk-version.ts

Development

# Build the package
pnpm build

# Run tests
pnpm test

# Run in watch mode
pnpm dev

Usage

For public SDK documentation see @n8n/ai-node-sdk.