Class Metadata
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<Metadata.Builder,Metadata>
Provides information about the execution process for different types of invocations, such as model invocation, knowledge base invocation, agent collaborator invocation, guardrail invocation, and code interpreter Invocation.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic Metadata.Builderbuilder()final StringA unique identifier associated with the downstream invocation.final InstantendTime()In the final response,endTimeis the end time of the agent invocation operation.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final LongThe total time it took for the agent to complete execution.static Class<? extends Metadata.Builder>final InstantIn the final response,startTimeis the start time of the agent invocation operation.final StringtoString()Returns a string representation of this object.final LongThe total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter).final Usageusage()Specific to model invocation and contains details about the usage of a foundation model.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
-
clientRequestId
A unique identifier associated with the downstream invocation. This ID can be used for tracing, debugging, and identifying specific invocations in customer logs or systems.
- Returns:
- A unique identifier associated with the downstream invocation. This ID can be used for tracing, debugging, and identifying specific invocations in customer logs or systems.
-
endTime
In the final response,
endTimeis the end time of the agent invocation operation.- Returns:
- In the final response,
endTimeis the end time of the agent invocation operation.
-
operationTotalTimeMs
The total time it took for the agent to complete execution. This field is only set for the final response.
- Returns:
- The total time it took for the agent to complete execution. This field is only set for the final response.
-
startTime
In the final response,
startTimeis the start time of the agent invocation operation.- Returns:
- In the final response,
startTimeis the start time of the agent invocation operation.
-
totalTimeMs
The total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter). It represents how long the individual invocation took.
- Returns:
- The total execution time for the specific invocation being processed (model, knowledge base, guardrail, agent collaborator, or code interpreter). It represents how long the individual invocation took.
-
usage
Specific to model invocation and contains details about the usage of a foundation model.
- Returns:
- Specific to model invocation and contains details about the usage of a foundation model.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<Metadata.Builder,Metadata>
-
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
-