Interface EvaluationResult.GoldenExpectationOutcome.ToolInvocationResultOrBuilder (0.3.0)

public static interface EvaluationResult.GoldenExpectationOutcome.ToolInvocationResultOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getExplanation()

public abstract String getExplanation()

Output only. A free text explanation for the tool invocation result.

string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The explanation.

getExplanationBytes()

public abstract ByteString getExplanationBytes()

Output only. A free text explanation for the tool invocation result.

string explanation = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for explanation.

getOutcome()

public abstract EvaluationResult.Outcome getOutcome()

Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.

.google.cloud.ces.v1beta.EvaluationResult.Outcome outcome = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
EvaluationResult.Outcome

The outcome.

getOutcomeValue()

public abstract int getOutcomeValue()

Output only. The outcome of the tool invocation check. This is determined by comparing the parameter_correctness_score to the threshold. If the score is equal to or above the threshold, the outcome will be PASS. Otherwise, the outcome will be FAIL.

.google.cloud.ces.v1beta.EvaluationResult.Outcome outcome = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
int

The enum numeric value on the wire for outcome.

getParameterCorrectnessScore()

public abstract float getParameterCorrectnessScore()

Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.

optional float parameter_correctness_score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
float

The parameterCorrectnessScore.

hasParameterCorrectnessScore()

public abstract boolean hasParameterCorrectnessScore()

Output only. The tool invocation parameter correctness score. This indicates the percent of parameters from the expected tool call that were also present in the actual tool call.

optional float parameter_correctness_score = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the parameterCorrectnessScore field is set.