@idriszade/process-classify
v0.1.9
Published
Pipeline-kit Process adapter for label classification of pipeline atoms
Maintainers
Readme
@idriszade/process-classify
Process adapter for label classification of pipeline atoms — rule-based or LLM-backed.
Install
pnpm add @idriszade/process-classifyOptional peer dependency (only required for mode: 'llm'):
@idriszade/process-extract
Usage
import { createClassifyProcess } from '@idriszade/process-classify';
const classify = createClassifyProcess<{ description: string }>({
mode: 'rules',
categories: ['urgent', 'normal'],
rules: [
{ field: 'description', match: 'contains', value: 'urgent', category: 'urgent' },
],
defaultCategory: 'normal',
});Reference
Canonical API surface: docs/spec-adapters.md. Core types: docs/spec-api-surface.md.
