Class ToolResultStructuredContent
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ToolResultStructuredContent.Builder,ToolResultStructuredContent>
Contains structured content from a tool result.
- See Also:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionbuilder()final booleanfinal booleanequalsBySdkFields(Object obj) final DoubleThe execution time of the tool operation in milliseconds.final IntegerexitCode()The exit code from the tool execution.final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()static Class<? extends ToolResultStructuredContent.Builder>final Stringstderr()The standard error output from the tool execution.final Stringstdout()The standard output from the tool execution.final StringtaskId()The identifier of the task that produced the result.final TaskStatusThe status of the task that produced the result.final StringThe status of the task that produced the result.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
-
taskId
The identifier of the task that produced the result.
- Returns:
- The identifier of the task that produced the result.
-
taskStatus
The status of the task that produced the result.
If the service returns an enum value that is not available in the current SDK version,
taskStatuswill returnTaskStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtaskStatusAsString().- Returns:
- The status of the task that produced the result.
- See Also:
-
taskStatusAsString
The status of the task that produced the result.
If the service returns an enum value that is not available in the current SDK version,
taskStatuswill returnTaskStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromtaskStatusAsString().- Returns:
- The status of the task that produced the result.
- See Also:
-
stdout
The standard output from the tool execution.
- Returns:
- The standard output from the tool execution.
-
stderr
The standard error output from the tool execution.
- Returns:
- The standard error output from the tool execution.
-
exitCode
The exit code from the tool execution.
- Returns:
- The exit code from the tool execution.
-
executionTime
The execution time of the tool operation in milliseconds.
- Returns:
- The execution time of the tool operation in milliseconds.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<ToolResultStructuredContent.Builder,ToolResultStructuredContent>
-
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
-