Class StreamingConfigurations
- java.lang.Object
-
- software.amazon.awssdk.services.bedrockagentruntime.model.StreamingConfigurations
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<StreamingConfigurations.Builder,StreamingConfigurations>
@Generated("software.amazon.awssdk:codegen") public final class StreamingConfigurations extends Object implements SdkPojo, Serializable, ToCopyableBuilder<StreamingConfigurations.Builder,StreamingConfigurations>
Configurations for streaming.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceStreamingConfigurations.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IntegerapplyGuardrailInterval()The guardrail interval to apply as response is generated.static StreamingConfigurations.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends StreamingConfigurations.Builder>serializableBuilderClass()BooleanstreamFinalResponse()Specifies whether to enable streaming for the final response.StreamingConfigurations.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
applyGuardrailInterval
public final Integer 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
public final Boolean 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
public StreamingConfigurations.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<StreamingConfigurations.Builder,StreamingConfigurations>
-
builder
public static StreamingConfigurations.Builder builder()
-
serializableBuilderClass
public static Class<? extends StreamingConfigurations.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String 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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-