public sealed class EvaluationResult.Types.ScenarioResult : IMessage<EvaluationResult.Types.ScenarioResult>, IEquatable<EvaluationResult.Types.ScenarioResult>, IDeepCloneable<EvaluationResult.Types.ScenarioResult>, IBufferMessage, IMessageReference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class EvaluationResult.Types.ScenarioResult.
The outcome of a scenario evaluation.
Implements
IMessageEvaluationResultTypesScenarioResult, IEquatableEvaluationResultTypesScenarioResult, IDeepCloneableEvaluationResultTypesScenarioResult, IBufferMessage, IMessageNamespace
Google.Cloud.Ces.V1BetaAssembly
Google.Cloud.Ces.V1Beta.dll
Constructors
ScenarioResult()
public ScenarioResult()ScenarioResult(ScenarioResult)
public ScenarioResult(EvaluationResult.Types.ScenarioResult other)| Parameter | |
|---|---|
| Name | Description |
other |
EvaluationResultTypesScenarioResult |
Properties
AllExpectationsSatisfied
public bool AllExpectationsSatisfied { get; set; }Output only. Whether all expectations were satisfied for this turn.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Conversation
public string Conversation { get; set; }Output only. The conversation that was generated in the scenario.
| Property Value | |
|---|---|
| Type | Description |
string |
|
ConversationAsConversationName
public ConversationName ConversationAsConversationName { get; set; }ConversationName-typed view over the Conversation resource name property.
| Property Value | |
|---|---|
| Type | Description |
ConversationName |
|
EvaluationExpectationResults
public RepeatedField<EvaluationResult.Types.EvaluationExpectationResult> EvaluationExpectationResults { get; }Output only. The results of the evaluation expectations.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldEvaluationResultTypesEvaluationExpectationResult |
|
ExpectationOutcomes
public RepeatedField<EvaluationResult.Types.ScenarioExpectationOutcome> ExpectationOutcomes { get; }Output only. The outcome of each expectation.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldEvaluationResultTypesScenarioExpectationOutcome |
|
HallucinationResult
public RepeatedField<EvaluationResult.Types.HallucinationResult> HallucinationResult { get; }Output only. The result of the hallucination check. There will be one hallucination result for each turn in the conversation.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldEvaluationResultTypesHallucinationResult |
|
HasAllExpectationsSatisfied
public bool HasAllExpectationsSatisfied { get; }Gets whether the "all_expectations_satisfied" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
HasTaskCompleted
public bool HasTaskCompleted { get; }Gets whether the "task_completed" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
RubricOutcomes
public RepeatedField<EvaluationResult.Types.ScenarioRubricOutcome> RubricOutcomes { get; }Output only. The outcome of the rubric.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldEvaluationResultTypesScenarioRubricOutcome |
|
SpanLatencies
public RepeatedField<EvaluationResult.Types.SpanLatency> SpanLatencies { get; }Output only. The latency of spans in the conversation.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldEvaluationResultTypesSpanLatency |
|
Task
public string Task { get; set; }Output only. The task that was used when running the scenario for this result.
| Property Value | |
|---|---|
| Type | Description |
string |
|
TaskCompleted
public bool TaskCompleted { get; set; }Output only. Whether the task was completed for this turn. This is a composite of all expectations satisfied, no hallucinations, and user goal satisfaction.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
TaskCompletionResult
[Obsolete]
public EvaluationResult.Types.TaskCompletionResult TaskCompletionResult { get; set; }Output only. The result of the task completion check.
| Property Value | |
|---|---|
| Type | Description |
EvaluationResultTypesTaskCompletionResult |
|
ToolCallLatencies
public RepeatedField<EvaluationResult.Types.ToolCallLatency> ToolCallLatencies { get; }Output only. The latency of each tool call execution in the conversation.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldEvaluationResultTypesToolCallLatency |
|
UserFacts
public RepeatedField<Evaluation.Types.Scenario.Types.UserFact> UserFacts { get; }Output only. The user facts that were used by the scenario for this result.
| Property Value | |
|---|---|
| Type | Description |
RepeatedFieldEvaluationTypesScenarioTypesUserFact |
|
UserGoalSatisfactionResult
public EvaluationResult.Types.UserGoalSatisfactionResult UserGoalSatisfactionResult { get; set; }Output only. The result of the user goal satisfaction check.
| Property Value | |
|---|---|
| Type | Description |
EvaluationResultTypesUserGoalSatisfactionResult |
|