public sealed class EvaluationResult.Types.GoldenExpectationOutcome.Types.ToolInvocationResult : IMessage<EvaluationResult.Types.GoldenExpectationOutcome.Types.ToolInvocationResult>, IEquatable<EvaluationResult.Types.GoldenExpectationOutcome.Types.ToolInvocationResult>, IDeepCloneable<EvaluationResult.Types.GoldenExpectationOutcome.Types.ToolInvocationResult>, IBufferMessage, IMessageReference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class EvaluationResult.Types.GoldenExpectationOutcome.Types.ToolInvocationResult.
The result of the tool invocation check.
Implements
IMessageEvaluationResultTypesGoldenExpectationOutcomeTypesToolInvocationResult, IEquatableEvaluationResultTypesGoldenExpectationOutcomeTypesToolInvocationResult, IDeepCloneableEvaluationResultTypesGoldenExpectationOutcomeTypesToolInvocationResult, IBufferMessage, IMessageNamespace
Google.Cloud.Ces.V1BetaAssembly
Google.Cloud.Ces.V1Beta.dll
Constructors
ToolInvocationResult()
public ToolInvocationResult()ToolInvocationResult(ToolInvocationResult)
public ToolInvocationResult(EvaluationResult.Types.GoldenExpectationOutcome.Types.ToolInvocationResult other)| Parameter | |
|---|---|
| Name | Description |
other |
EvaluationResultTypesGoldenExpectationOutcomeTypesToolInvocationResult |
Properties
Explanation
public string Explanation { get; set; }Output only. A free text explanation for the tool invocation result.
| Property Value | |
|---|---|
| Type | Description |
string |
|
HasParameterCorrectnessScore
public bool HasParameterCorrectnessScore { get; }Gets whether the "parameter_correctness_score" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Outcome
public EvaluationResult.Types.Outcome Outcome { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
EvaluationResultTypesOutcome |
|
ParameterCorrectnessScore
public float ParameterCorrectnessScore { get; set; }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.
| Property Value | |
|---|---|
| Type | Description |
float |
|