Class OutputFilteringConfig
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.OutputFilteringConfig
OutputFilteringConfig
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceBuilder helper class. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for OutputFilteringConfig. -
Method Summary
Modifier and TypeMethodDescriptionaddFiltersItem(OutputFilterConfig filtersItem) Add one filters instance to thisOutputFilteringConfig.create()Create a type-safe, fluent-api builder object to construct a newOutputFilteringConfiginstance with all required arguments.booleanfilters(List<OutputFilterConfig> filters) Set the filters of thisOutputFilteringConfiginstance and return the same instance.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theOutputFilteringConfig.Configuration for content filtering services that should be used for the given filtering step (output filtering).Get streamOptionsinthashCode()voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisOutputFilteringConfiginstance.voidsetFilters(List<OutputFilterConfig> filters) Set the filters of thisOutputFilteringConfiginstance.voidsetStreamOptions(FilteringStreamOptions streamOptions) Set the streamOptions of thisOutputFilteringConfiginstance.streamOptions(FilteringStreamOptions streamOptions) Set the streamOptions of thisOutputFilteringConfiginstance and return the same instance.toMap()Get the value of all properties of thisOutputFilteringConfiginstance including unrecognized properties.toString()
-
Constructor Details
-
OutputFilteringConfig
protected OutputFilteringConfig()Default constructor for OutputFilteringConfig.
-
-
Method Details
-
filters
Set the filters of thisOutputFilteringConfiginstance and return the same instance.- Parameters:
filters- Configuration for content filtering services that should be used for the given filtering step (output filtering).- Returns:
- The same instance of this
OutputFilteringConfigclass
-
addFiltersItem
Add one filters instance to thisOutputFilteringConfig.- Parameters:
filtersItem- The filters that should be added- Returns:
- The same instance of type
OutputFilteringConfig
-
getFilters
Configuration for content filtering services that should be used for the given filtering step (output filtering).- Returns:
- filters The filters of this
OutputFilteringConfiginstance.
-
setFilters
Set the filters of thisOutputFilteringConfiginstance.- Parameters:
filters- Configuration for content filtering services that should be used for the given filtering step (output filtering).
-
streamOptions
Set the streamOptions of thisOutputFilteringConfiginstance and return the same instance.- Parameters:
streamOptions- The streamOptions of thisOutputFilteringConfig- Returns:
- The same instance of this
OutputFilteringConfigclass
-
getStreamOptions
Get streamOptions- Returns:
- streamOptions The streamOptions of this
OutputFilteringConfiginstance.
-
setStreamOptions
Set the streamOptions of thisOutputFilteringConfiginstance.- Parameters:
streamOptions- The streamOptions of thisOutputFilteringConfig
-
getCustomFieldNames
Get the names of the unrecognizable properties of theOutputFilteringConfig.- Returns:
- The set of properties names
-
getCustomField
@Nullable @Deprecated public Object getCustomField(@Nonnull String name) throws NoSuchElementException Deprecated.UsetoMap()instead.Get the value of an unrecognizable property of thisOutputFilteringConfiginstance.- Parameters:
name- The name of the property- Returns:
- The value of the property
- Throws:
NoSuchElementException- If no property with the given name could be found.
-
toMap
Get the value of all properties of thisOutputFilteringConfiginstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisOutputFilteringConfiginstance. If the map previously contained a mapping for the key, the old value is replaced by the specified value.- Parameters:
customFieldName- The name of the propertycustomFieldValue- The value of the property
-
equals
-
hashCode
public int hashCode() -
toString
-
create
Create a type-safe, fluent-api builder object to construct a newOutputFilteringConfiginstance with all required arguments.
-
toMap()instead.