Record Class ConverseApiUtils.MetadataAggregation
java.lang.Object
java.lang.Record
org.springframework.ai.bedrock.converse.api.ConverseApiUtils.MetadataAggregation
- Enclosing class:
- ConverseApiUtils
public static record ConverseApiUtils.MetadataAggregation(String role, String stopReason, software.amazon.awssdk.core.document.Document additionalModelResponseFields, software.amazon.awssdk.services.bedrockruntime.model.TokenUsage tokenUsage, software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamMetrics metrics, software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamTrace trace)
extends Record
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionMetadataAggregation(String role, String stopReason, software.amazon.awssdk.core.document.Document additionalModelResponseFields, software.amazon.awssdk.services.bedrockruntime.model.TokenUsage tokenUsage, software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamMetrics metrics, software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamTrace trace) Creates an instance of aMetadataAggregationrecord class. -
Method Summary
Modifier and TypeMethodDescriptionsoftware.amazon.awssdk.core.document.DocumentReturns the value of theadditionalModelResponseFieldsrecord component.builder()final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamMetricsmetrics()Returns the value of themetricsrecord component.role()Returns the value of therolerecord component.Returns the value of thestopReasonrecord component.software.amazon.awssdk.services.bedrockruntime.model.TokenUsageReturns the value of thetokenUsagerecord component.final StringtoString()Returns a string representation of this record class.software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamTracetrace()Returns the value of thetracerecord component.
-
Constructor Details
-
MetadataAggregation
public MetadataAggregation(String role, String stopReason, software.amazon.awssdk.core.document.Document additionalModelResponseFields, software.amazon.awssdk.services.bedrockruntime.model.TokenUsage tokenUsage, software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamMetrics metrics, software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamTrace trace) Creates an instance of aMetadataAggregationrecord class.- Parameters:
role- the value for therolerecord componentstopReason- the value for thestopReasonrecord componentadditionalModelResponseFields- the value for theadditionalModelResponseFieldsrecord componenttokenUsage- the value for thetokenUsagerecord componentmetrics- the value for themetricsrecord componenttrace- the value for thetracerecord component
-
-
Method Details
-
builder
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
stopReason
Returns the value of thestopReasonrecord component.- Returns:
- the value of the
stopReasonrecord component
-
additionalModelResponseFields
public software.amazon.awssdk.core.document.Document additionalModelResponseFields()Returns the value of theadditionalModelResponseFieldsrecord component.- Returns:
- the value of the
additionalModelResponseFieldsrecord component
-
tokenUsage
public software.amazon.awssdk.services.bedrockruntime.model.TokenUsage tokenUsage()Returns the value of thetokenUsagerecord component.- Returns:
- the value of the
tokenUsagerecord component
-
metrics
public software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamMetrics metrics()Returns the value of themetricsrecord component.- Returns:
- the value of the
metricsrecord component
-
trace
public software.amazon.awssdk.services.bedrockruntime.model.ConverseStreamTrace trace()Returns the value of thetracerecord component.- Returns:
- the value of the
tracerecord component
-