mirror of
https://github.com/n8n-io/n8n.git
synced 2026-06-04 18:49:20 +02:00
|
Some checks are pending
Build: Benchmark Image / build (push) Waiting to run
CI: Master (Build, Test, Lint) / Build for Github Cache (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (22.22.3) (push) Waiting to run
CI: Master (Build, Test, Lint) / Unit tests (24.15.0) (push) Waiting to run
CI: Master (Build, Test, Lint) / Lint (push) Waiting to run
CI: Master (Build, Test, Lint) / Performance (push) Waiting to run
CI: Master (Build, Test, Lint) / Notify Slack on failure (push) Blocked by required conditions
Util: Sync API Docs / sync-public-api (push) Waiting to run
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| integration-tests | ||
| scripts | ||
| src | ||
| .editorconfig | ||
| .gitignore | ||
| .npmignore | ||
| eslint.config.mjs | ||
| package.json | ||
| README.md | ||
| tsconfig.build.cjs.json | ||
| tsconfig.build.esm.json | ||
| tsconfig.json | ||
| vite.config.ts | ||
@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 updateAI_NODE_SDK_VERSIONinai-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.