@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ConverseResult extends AmazonWebServiceResult<ResponseMetadata> implements Serializable, Cloneable
| Constructor and Description |
|---|
ConverseResult() |
| Modifier and Type | Method and Description |
|---|---|
ConverseResult |
clone() |
boolean |
equals(Object obj) |
ConverseMetrics |
getMetrics()
Metrics for the call to
Converse. |
ConverseOutput |
getOutput()
The result from the call to
Converse. |
String |
getStopReason()
The reason why the model stopped generating output.
|
ConverseTrace |
getTrace()
A trace object that contains information about the Guardrail behavior.
|
TokenUsage |
getUsage()
The total number of tokens used in the call to
Converse. |
int |
hashCode() |
void |
setMetrics(ConverseMetrics metrics)
Metrics for the call to
Converse. |
void |
setOutput(ConverseOutput output)
The result from the call to
Converse. |
void |
setStopReason(String stopReason)
The reason why the model stopped generating output.
|
void |
setTrace(ConverseTrace trace)
A trace object that contains information about the Guardrail behavior.
|
void |
setUsage(TokenUsage usage)
The total number of tokens used in the call to
Converse. |
String |
toString()
Returns a string representation of this object.
|
ConverseResult |
withMetrics(ConverseMetrics metrics)
Metrics for the call to
Converse. |
ConverseResult |
withOutput(ConverseOutput output)
The result from the call to
Converse. |
ConverseResult |
withStopReason(StopReason stopReason)
The reason why the model stopped generating output.
|
ConverseResult |
withStopReason(String stopReason)
The reason why the model stopped generating output.
|
ConverseResult |
withTrace(ConverseTrace trace)
A trace object that contains information about the Guardrail behavior.
|
ConverseResult |
withUsage(TokenUsage usage)
The total number of tokens used in the call to
Converse. |
getSdkHttpMetadata, getSdkResponseMetadata, setSdkHttpMetadata, setSdkResponseMetadatapublic void setOutput(ConverseOutput output)
The result from the call to Converse.
output - The result from the call to Converse.public ConverseOutput getOutput()
The result from the call to Converse.
Converse.public ConverseResult withOutput(ConverseOutput output)
The result from the call to Converse.
output - The result from the call to Converse.public void setStopReason(String stopReason)
The reason why the model stopped generating output.
stopReason - The reason why the model stopped generating output.StopReasonpublic String getStopReason()
The reason why the model stopped generating output.
StopReasonpublic ConverseResult withStopReason(String stopReason)
The reason why the model stopped generating output.
stopReason - The reason why the model stopped generating output.StopReasonpublic ConverseResult withStopReason(StopReason stopReason)
The reason why the model stopped generating output.
stopReason - The reason why the model stopped generating output.StopReasonpublic void setUsage(TokenUsage 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.
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.public TokenUsage getUsage()
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.
Converse. The total includes the tokens input
to the model and the tokens generated by the model.public ConverseResult withUsage(TokenUsage 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.
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.public void setMetrics(ConverseMetrics metrics)
Metrics for the call to Converse.
metrics - Metrics for the call to Converse.public ConverseMetrics getMetrics()
Metrics for the call to Converse.
Converse.public ConverseResult withMetrics(ConverseMetrics metrics)
Metrics for the call to Converse.
metrics - Metrics for the call to Converse.public void setTrace(ConverseTrace trace)
A trace object that contains information about the Guardrail behavior.
trace - A trace object that contains information about the Guardrail behavior.public ConverseTrace getTrace()
A trace object that contains information about the Guardrail behavior.
public ConverseResult withTrace(ConverseTrace trace)
A trace object that contains information about the Guardrail behavior.
trace - A trace object that contains information about the Guardrail behavior.public String toString()
toString in class ObjectObject.toString()public ConverseResult clone()