@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ToolResultBlock extends Object implements Serializable, Cloneable, StructuredPojo
A tool result block that contains the results for a tool request that the model previously made.
Constructor and Description |
---|
ToolResultBlock() |
Modifier and Type | Method and Description |
---|---|
ToolResultBlock |
clone() |
boolean |
equals(Object obj) |
List<ToolResultContentBlock> |
getContent()
The content for tool result content block.
|
String |
getStatus()
The status for the tool result content block.
|
String |
getToolUseId()
The ID of the tool request that this is the result for.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setContent(Collection<ToolResultContentBlock> content)
The content for tool result content block.
|
void |
setStatus(String status)
The status for the tool result content block.
|
void |
setToolUseId(String toolUseId)
The ID of the tool request that this is the result for.
|
String |
toString()
Returns a string representation of this object.
|
ToolResultBlock |
withContent(Collection<ToolResultContentBlock> content)
The content for tool result content block.
|
ToolResultBlock |
withContent(ToolResultContentBlock... content)
The content for tool result content block.
|
ToolResultBlock |
withStatus(String status)
The status for the tool result content block.
|
ToolResultBlock |
withStatus(ToolResultStatus status)
The status for the tool result content block.
|
ToolResultBlock |
withToolUseId(String toolUseId)
The ID of the tool request that this is the result for.
|
public void setToolUseId(String toolUseId)
The ID of the tool request that this is the result for.
toolUseId
- The ID of the tool request that this is the result for.public String getToolUseId()
The ID of the tool request that this is the result for.
public ToolResultBlock withToolUseId(String toolUseId)
The ID of the tool request that this is the result for.
toolUseId
- The ID of the tool request that this is the result for.public List<ToolResultContentBlock> getContent()
The content for tool result content block.
public void setContent(Collection<ToolResultContentBlock> content)
The content for tool result content block.
content
- The content for tool result content block.public ToolResultBlock withContent(ToolResultContentBlock... content)
The content for tool result content block.
NOTE: This method appends the values to the existing list (if any). Use
setContent(java.util.Collection)
or withContent(java.util.Collection)
if you want to override
the existing values.
content
- The content for tool result content block.public ToolResultBlock withContent(Collection<ToolResultContentBlock> content)
The content for tool result content block.
content
- The content for tool result content block.public void setStatus(String status)
The status for the tool result content block.
This field is only supported Anthropic Claude 3 models.
status
- The status for the tool result content block. This field is only supported Anthropic Claude 3 models.
ToolResultStatus
public String getStatus()
The status for the tool result content block.
This field is only supported Anthropic Claude 3 models.
This field is only supported Anthropic Claude 3 models.
ToolResultStatus
public ToolResultBlock withStatus(String status)
The status for the tool result content block.
This field is only supported Anthropic Claude 3 models.
status
- The status for the tool result content block. This field is only supported Anthropic Claude 3 models.
ToolResultStatus
public ToolResultBlock withStatus(ToolResultStatus status)
The status for the tool result content block.
This field is only supported Anthropic Claude 3 models.
status
- The status for the tool result content block. This field is only supported Anthropic Claude 3 models.
ToolResultStatus
public String toString()
toString
in class Object
Object.toString()
public ToolResultBlock clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.