Introduction¶
The DSH plugin allows developers to extend agent capabilities. The role of dsh-jev-decide is to register an agent tool named jev_decide, integrating TypeSafe Jev (“System One” decision model) into DSH. It solves the problem where, when an agent needs to make fast and accurate judgments (such as message urgency grading, intent routing, or guardrail checks), it calls Jev to obtain structured probabilistic outputs instead of relying on the conversational model to guess based on intuition.
Core Features¶
This plugin primarily provides the following capabilities:
- Tool Registration: Registers the
jev_decidetool within DSH. - Three Type Support: Supports three types of judgments:
noul(Yes/No),choice(multiple choice), andscore(ordered scoring). - Probabilistic Output: Returns calibrated probabilities along with confidence levels.
- Zero-Config Credentials: Reuses DSH credentials, eliminating the need for additional API Key configuration.
- Built-in Retries: Built-in retry mechanism for status codes 429 and 529.
Installation¶
You can install it directly via the official command:
dsh plugin --profile web add dsh-jev-decide
Alternatively, you can install it via npm (requires npm >=7 or pnpm auto-install-peers):
npm install dsh-jev-decide
Configuration¶
The plugin’s data directory configuration is set to $DSH_HOME/plugins/dsh-jev-decide/config.json (or via the cordis patch config:):
{
"model": "jev-latest",
"timeoutMs": 15000,
"baseUrl": "https://api.typesafe.ai/v1"
}
Usage¶
When calling the jev_decide tool, the following parameters must be passed:
jev_decide({
state: string, // Required, the content to evaluate (plain text)
question: string, // Required, the judgment to be made
type?: 'noul' | 'choice' | 'score', // Defaults to noul
options?: string[], // Required (≥2) when type=choice
levels?: string[], // Required (≥2, from low to high) when type=score
yes?: string, // Optional when type=noul: what counts as YES (sharpen calibration)
no?: string, // Optional when type=noul: what counts as NO
model?: string, // Defaults to jev-latest
})
Notes¶
- Use Cases: Jev does not generate text; it is intended solely for judgment. It is not suitable for text generation tasks such as writing code or copywriting.
- Peer Dependencies: The host does not inject the bundled
@deepseek-ai/dsh-toolsinto the plugin’s module resolution chain. When accessing source code vialink:or local paths, you must runnpm installonce within the plugin directory to materialize the peer dependencies. - Manual Wiring Upgrades: For profiles that have already been manually wired using Method 3, do not run
dsh plugin addon them again, otherwise, aduplicate loader entry iderror will occur.