Function: createMLClassifierPack()
createMLClassifierPack(
options?):ExtensionPack
Defined in: packages/agentos/src/extensions/packs/ml-classifiers/index.ts:105
Create an ExtensionPack that bundles:
- The MLClassifierGuardrail guardrail (evaluates input & output).
- The ClassifyContentTool
classify_contenttool (on-demand analysis).
The built-in classifiers that are instantiated depend on options.classifiers:
'toxicity'→ ToxicityClassifier (unitary/toxic-bert)'injection'→ InjectionClassifier (protectai/deberta-v3-small-prompt-injection-v2)'jailbreak'→ JailbreakClassifier (meta-llama/PromptGuard-86M)
When options.classifiers is undefined or empty, all three are active.
Additional classifiers supplied via options.customClassifiers are appended
to the active list and run in parallel alongside the built-in ones.
Parameters
options?
MLClassifierPackOptions
Optional pack-level configuration. All properties have sensible defaults; see MLClassifierPackOptions.
Returns
A fully-configured ExtensionPack with one guardrail descriptor and one tool descriptor.