wushu75/conceptnet-dsh-plugin0

conceptnet-dsh-plugin

ConceptNet intent classification plugin for DeepSeek Harness

AI 분석

核心用途是提供文本意图分类功能,识别执行模式、代理动作及置信度。适合需要在 DSH 中对用户输入的指令或任务进行前置意图解析与分类的开发者。

패키지
conceptnet-dsh-plugin
버전
1.0.0
최근 업데이트
2026. 9. 3.

설치

검증된 bundle이 없거나 호환성 검사에 실패했습니다. 먼저 저장소 설명을 읽어 주세요. 전체 README 읽기 ↗

Usage

Basic classification

import { classify } from 'conceptnet-dsh-plugin'

const result = await classify(
  'Send the report when the contract is signed',
  'YOUR_HF_TOKEN'
)

console.log(result)
// {
//   text: 'Send the report when the contract is signed',
//   intent_layer: 2,
//   intent_label: 'Context-Aware',
//   execution_mode: 'conditional',
//   agent_action: 'register_trigger',
//   confidence: 0.9734,
//   language: 'en'
// }

Plugin class

import ConceptNetPlugin from 'conceptnet-dsh-plugin'

const plugin = new ConceptNetPlugin({
  hfToken: 'YOUR_HF_TOKEN',
  language: 'en'
})

// Classify a command
const result = await plugin.classify('Alert manager before contract expires')
// intent_layer: 3 (Predictive)

// Route to correct agent action automatically
const routed = await plugin.route('Auto-update Salesforce after every call', {
  1: (r) => immediateExecutor(r),
  2: (r) => triggerRegistry(r),
  3: (r) => proactiveScheduler(r),
  4: (r) => agentDeployer(r)
})

// Batch classify
const commands = [
  'Schedule a meeting',
  'Send report when approved',
  'Alert before deadline',
  'Always update CRM after calls'
]
const results = await plugin.classifyBatch(commands)

Multilingual

// French
await plugin.classify('Envoyer le rapport quand le contrat est signé', 'fr')

// Arabic
await plugin.classify('تنبيه المدير قبل انتهاء العقد', 'ar')

// Chinese
await plugin.classify('合同签署后自动更新CRM', 'zh')