Class StreamingConfigurations
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StreamingConfigurations.Builder,StreamingConfigurations>
Configurations for streaming.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal IntegerThe guardrail interval to apply as response is generated.builder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends StreamingConfigurations.Builder>final BooleanSpecifies whether to enable streaming for the final response.final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
applyGuardrailInterval
The guardrail interval to apply as response is generated. By default, the guardrail interval is set to 50 characters. If a larger interval is specified, the response will be generated in larger chunks with fewer
ApplyGuardrailcalls. The following examples show the response generated for Hello, I am an agent input string.Example response in chunks: Interval set to 3 characters
'Hel', 'lo, ','I am', ' an', ' Age', 'nt'Each chunk has at least 3 characters except for the last chunk
Example response in chunks: Interval set to 20 or more characters
Hello, I am an Agent- Returns:
- The guardrail interval to apply as response is generated. By default, the guardrail interval is set to 50
characters. If a larger interval is specified, the response will be generated in larger chunks with fewer
ApplyGuardrailcalls. The following examples show the response generated for Hello, I am an agent input string.Example response in chunks: Interval set to 3 characters
'Hel', 'lo, ','I am', ' an', ' Age', 'nt'Each chunk has at least 3 characters except for the last chunk
Example response in chunks: Interval set to 20 or more characters
Hello, I am an Agent
-
streamFinalResponse
Specifies whether to enable streaming for the final response. This is set to
falseby default.- Returns:
- Specifies whether to enable streaming for the final response. This is set to
falseby default.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<StreamingConfigurations.Builder,StreamingConfigurations>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-