Class FilteringStreamOptions
java.lang.Object
com.sap.ai.sdk.orchestration.model.FilteringStreamOptions
Stream options for output filtering. Will be ignored if stream is false.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for FilteringStreamOptions. -
Method Summary
Modifier and TypeMethodDescriptionstatic FilteringStreamOptionscreate()Create a newFilteringStreamOptionsinstance.booleangetCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theFilteringStreamOptions.Number of characters that should be additionally sent to content filtering services from previous chunks as additional context.inthashCode()Set the overlap of thisFilteringStreamOptionsinstance and return the same instance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisFilteringStreamOptionsinstance.voidsetOverlap(Integer overlap) Set the overlap of thisFilteringStreamOptionsinstance.toMap()Get the value of all properties of thisFilteringStreamOptionsinstance including unrecognized properties.toString()
-
Constructor Details
-
FilteringStreamOptions
protected FilteringStreamOptions()Default constructor for FilteringStreamOptions.
-
-
Method Details
-
overlap
Set the overlap of thisFilteringStreamOptionsinstance and return the same instance.- Parameters:
overlap- Number of characters that should be additionally sent to content filtering services from previous chunks as additional context. Minimum: 0 Maximum: 10000- Returns:
- The same instance of this
FilteringStreamOptionsclass
-
getOverlap
Number of characters that should be additionally sent to content filtering services from previous chunks as additional context. minimum: 0 maximum: 10000- Returns:
- overlap The overlap of this
FilteringStreamOptionsinstance.
-
setOverlap
Set the overlap of thisFilteringStreamOptionsinstance.- Parameters:
overlap- Number of characters that should be additionally sent to content filtering services from previous chunks as additional context. Minimum: 0 Maximum: 10000
-
getCustomFieldNames
Get the names of the unrecognizable properties of theFilteringStreamOptions.- 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 thisFilteringStreamOptionsinstance.- 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 thisFilteringStreamOptionsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisFilteringStreamOptionsinstance. 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 newFilteringStreamOptionsinstance. No arguments are required.
-
toMap()instead.