Class ConverseResponse
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<ConverseResponse.Builder,ConverseResponse>
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionfinal DocumentAdditional fields in the response that are unique to the model.static ConverseResponse.Builderbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final ConverseMetricsmetrics()Metrics for the call toConverse.final ConverseOutputoutput()The result from the call toConverse.final PerformanceConfigurationModel performance settings for the request.static Class<? extends ConverseResponse.Builder>final ServiceTierSpecifies the processing tier configuration used for serving the request.final StopReasonThe reason why the model stopped generating output.final StringThe reason why the model stopped generating output.final StringtoString()Returns a string representation of this object.final ConverseTracetrace()A trace object that contains information about the Guardrail behavior.final TokenUsageusage()The total number of tokens used in the call toConverse.Methods inherited from class software.amazon.awssdk.services.bedrockruntime.model.BedrockRuntimeResponse
responseMetadataMethods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponseMethods 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
-
output
The result from the call to
Converse.- Returns:
- The result from the call to
Converse.
-
stopReason
The reason why the model stopped generating output.
If the service returns an enum value that is not available in the current SDK version,
stopReasonwill returnStopReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstopReasonAsString().- Returns:
- The reason why the model stopped generating output.
- See Also:
-
stopReasonAsString
The reason why the model stopped generating output.
If the service returns an enum value that is not available in the current SDK version,
stopReasonwill returnStopReason.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromstopReasonAsString().- Returns:
- The reason why the model stopped generating output.
- See Also:
-
usage
The total number of tokens used in the call to
Converse. The total includes the tokens input to the model and the tokens generated by the model.- Returns:
- The total number of tokens used in the call to
Converse. The total includes the tokens input to the model and the tokens generated by the model.
-
metrics
Metrics for the call to
Converse.- Returns:
- Metrics for the call to
Converse.
-
additionalModelResponseFields
Additional fields in the response that are unique to the model.
- Returns:
- Additional fields in the response that are unique to the model.
-
trace
A trace object that contains information about the Guardrail behavior.
- Returns:
- A trace object that contains information about the Guardrail behavior.
-
performanceConfig
Model performance settings for the request.
- Returns:
- Model performance settings for the request.
-
serviceTier
Specifies the processing tier configuration used for serving the request.
- Returns:
- Specifies the processing tier configuration used for serving the request.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ConverseResponse.Builder,ConverseResponse> - Specified by:
toBuilderin classAwsResponse
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsResponse
-
equals
- Overrides:
equalsin classAwsResponse
-
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
- Overrides:
getValueForFieldin classSdkResponse
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-