Table of Contents

Interface IIntentClassifierManager

Namespace
JD.AI.Workflows
Assembly
JD.AI.Workflows.dll

Manages the active IPromptIntentClassifier and enables hot-swapping to a new classifier (e.g. ML.NET model) without restarting the Gateway.

public interface IIntentClassifierManager

Properties

Classifier

Current active classifier.

IPromptIntentClassifier Classifier { get; }

Property Value

IPromptIntentClassifier

Methods

ReloadCurrent()

Reloads the currently active classifier if it supports hot-reload (e.g. MlNetIntentClassifier).

void ReloadCurrent()

SetClassifier(IPromptIntentClassifier)

Replaces the active classifier with classifier, disposing the previous instance if it implements IDisposable.

void SetClassifier(IPromptIntentClassifier classifier)

Parameters

classifier IPromptIntentClassifier