Package com.sap.ai.sdk.orchestration
Interface ContentFilter
- All Known Implementing Classes:
AzureContentFilter,LlamaGuardFilter
public interface ContentFilter
Interface representing convenience wrappers of serializable content filter that defines
thresholds for different content categories.
-
Method Summary
Modifier and TypeMethodDescriptionA method that produces the serializable equivalentInputFilterConfigobject from data encapsulated in theContentFilterobject.A method that produces the serializable equivalentOutputFilterConfigobject from data encapsulated in theContentFilterobject.
-
Method Details
-
createInputFilterConfig
A method that produces the serializable equivalentInputFilterConfigobject from data encapsulated in theContentFilterobject.- Returns:
- the corresponding
InputFilterConfigobject.
-
createOutputFilterConfig
A method that produces the serializable equivalentOutputFilterConfigobject from data encapsulated in theContentFilterobject.- Returns:
- the corresponding
OutputFilterConfigobject.
-