Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.

submitTextClassificationsRequest(textClassificationsRequestInput, llmType)

Submits a text classification request to Einstein

API Version

59.0

Requires Chatter

No

Signature

public static ConnectApi.TextClassificationsOutputRepresentation submitTextClassificationsRequest(ConnectApi.TextClassificationsInputRepresentation textClassificationsRequestInput, String llmType)

Parameters

textClassificationsRequestInput
Type: ConnectApi.TextClassificationsInputRepresentation
Text classification containing a list of text strings and classifiers. Each text string is classified into classifiers based on analysis.
llmType
Type: List )String)
The large language model that’s used for analysis. Supports Open AI only.

Example

1ConnectApi.TextClassificationsInputRepresentation textClassificationsInputRepresentation = new ConnectApi.TextClassificationsInputRepresentation();
2textClassificationsInputRepresentation.textList = textList;
3textClassificationsInputRepresentation.classifiers = classifiers;
4List < String > requestIds = new List < String > ();