Class GlobalStreamOptions
java.lang.Object
com.sap.ai.sdk.prompt.registry.model.GlobalStreamOptions
Options for streaming. Will be ignored if enabled is false.
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedDefault constructor for GlobalStreamOptions. -
Method Summary
Modifier and TypeMethodDescriptionaddDelimitersItem(String delimitersItem) Add one delimiters instance to thisGlobalStreamOptions.Set the chunkSize of thisGlobalStreamOptionsinstance and return the same instance.static GlobalStreamOptionscreate()Create a newGlobalStreamOptionsinstance.delimiters(List<String> delimiters) Set the delimiters of thisGlobalStreamOptionsinstance and return the same instance.Set the enabled of thisGlobalStreamOptionsinstance and return the same instance.booleanMinimum number of characters per chunk that post-LLM modules operate on.getCustomField(String name) Deprecated.Get the names of the unrecognizable properties of theGlobalStreamOptions.List of delimiters to split the input text into chunks.Please note, this is a required parameter when `input_translation_module_config` or `output_translation_module_config` are configured.inthashCode()If true, the response will be streamed back to the clientvoidsetChunkSize(Integer chunkSize) Set the chunkSize of thisGlobalStreamOptionsinstance.voidsetCustomField(String customFieldName, Object customFieldValue) Set an unrecognizable property of thisGlobalStreamOptionsinstance.voidsetDelimiters(List<String> delimiters) Set the delimiters of thisGlobalStreamOptionsinstance.voidsetEnabled(Boolean enabled) Set the enabled of thisGlobalStreamOptionsinstance.toMap()Get the value of all properties of thisGlobalStreamOptionsinstance including unrecognized properties.toString()
-
Constructor Details
-
GlobalStreamOptions
protected GlobalStreamOptions()Default constructor for GlobalStreamOptions.
-
-
Method Details
-
enabled
Set the enabled of thisGlobalStreamOptionsinstance and return the same instance.- Parameters:
enabled- If true, the response will be streamed back to the client- Returns:
- The same instance of this
GlobalStreamOptionsclass
-
isEnabled
If true, the response will be streamed back to the client- Returns:
- enabled The enabled of this
GlobalStreamOptionsinstance.
-
setEnabled
Set the enabled of thisGlobalStreamOptionsinstance.- Parameters:
enabled- If true, the response will be streamed back to the client
-
chunkSize
Set the chunkSize of thisGlobalStreamOptionsinstance and return the same instance.- Parameters:
chunkSize- Minimum number of characters per chunk that post-LLM modules operate on. Minimum: 1 Maximum: 10000- Returns:
- The same instance of this
GlobalStreamOptionsclass
-
getChunkSize
Minimum number of characters per chunk that post-LLM modules operate on. minimum: 1 maximum: 10000- Returns:
- chunkSize The chunkSize of this
GlobalStreamOptionsinstance.
-
setChunkSize
Set the chunkSize of thisGlobalStreamOptionsinstance.- Parameters:
chunkSize- Minimum number of characters per chunk that post-LLM modules operate on. Minimum: 1 Maximum: 10000
-
delimiters
Set the delimiters of thisGlobalStreamOptionsinstance and return the same instance.- Parameters:
delimiters- List of delimiters to split the input text into chunks.Please note, this is a required parameter when `input_translation_module_config` or `output_translation_module_config` are configured.- Returns:
- The same instance of this
GlobalStreamOptionsclass
-
addDelimitersItem
Add one delimiters instance to thisGlobalStreamOptions.- Parameters:
delimitersItem- The delimiters that should be added- Returns:
- The same instance of type
GlobalStreamOptions
-
getDelimiters
List of delimiters to split the input text into chunks.Please note, this is a required parameter when `input_translation_module_config` or `output_translation_module_config` are configured.- Returns:
- delimiters The delimiters of this
GlobalStreamOptionsinstance.
-
setDelimiters
Set the delimiters of thisGlobalStreamOptionsinstance.- Parameters:
delimiters- List of delimiters to split the input text into chunks.Please note, this is a required parameter when `input_translation_module_config` or `output_translation_module_config` are configured.
-
getCustomFieldNames
Get the names of the unrecognizable properties of theGlobalStreamOptions.- 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 thisGlobalStreamOptionsinstance.- 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 thisGlobalStreamOptionsinstance including unrecognized properties.- Returns:
- The map of all properties
-
setCustomField
Set an unrecognizable property of thisGlobalStreamOptionsinstance. 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 newGlobalStreamOptionsinstance. No arguments are required.
-
toMap()instead.