Package akka.javasdk.agent
Interface ClassifierClient
@DoNotInherit
public interface ClassifierClient
Client for invoking a configured
Classifier by name.
Can be injected in agents, guardrails, evaluators, and application code — including into another classifier's constructor, to compose an ensemble out of several configured classifiers.
Not for user extension, implementation provided by the SDK.
-
Method Summary
Modifier and TypeMethodDescriptionClassifiesinputwith the classifier configured undername, blocking for the result.classifyAsync(String name, String input) Async variant ofclassify(java.lang.String, java.lang.String).
-
Method Details
-
classify
Classifiesinputwith the classifier configured undername, blocking for the result.- Throws:
IllegalArgumentException- if no classifier is configured with that name
-
classifyAsync
Async variant ofclassify(java.lang.String, java.lang.String).- Throws:
IllegalArgumentException- if no classifier is configured with that name
-