public sealed class Evaluation.Types.GoldenExpectation : IMessage<Evaluation.Types.GoldenExpectation>, IEquatable<Evaluation.Types.GoldenExpectation>, IDeepCloneable<Evaluation.Types.GoldenExpectation>, IBufferMessage, IMessageReference documentation and code samples for the Gemini Enterprise for Customer Experience v1beta API class Evaluation.Types.GoldenExpectation.
Represents a single, checkable requirement.
Implements
IMessageEvaluationTypesGoldenExpectation, IEquatableEvaluationTypesGoldenExpectation, IDeepCloneableEvaluationTypesGoldenExpectation, IBufferMessage, IMessageNamespace
Google.Cloud.Ces.V1BetaAssembly
Google.Cloud.Ces.V1Beta.dll
Constructors
GoldenExpectation()
public GoldenExpectation()GoldenExpectation(GoldenExpectation)
public GoldenExpectation(Evaluation.Types.GoldenExpectation other)| Parameter | |
|---|---|
| Name | Description |
other |
EvaluationTypesGoldenExpectation |
Properties
AgentResponse
public Message AgentResponse { get; set; }Optional. Check that the agent responded with the correct response. The role "agent" is implied.
| Property Value | |
|---|---|
| Type | Description |
Message |
|
AgentResponseHallucinationMetricsConfigOverride
public EvaluationMetricsConfig.Types.HallucinationMetricsConfig AgentResponseHallucinationMetricsConfigOverride { get; set; }Optional. Overrides for agent_response hallucination metrics.
| Property Value | |
|---|---|
| Type | Description |
EvaluationMetricsConfigTypesHallucinationMetricsConfig |
|
AgentResponseSemanticSimilarityMetricsConfigOverride
public EvaluationMetricsConfig.Types.SemanticSimilarityMetricsConfig AgentResponseSemanticSimilarityMetricsConfigOverride { get; set; }Optional. Overrides for agent_response semantic similarity metrics.
| Property Value | |
|---|---|
| Type | Description |
EvaluationMetricsConfigTypesSemanticSimilarityMetricsConfig |
|
AgentTransfer
public AgentTransfer AgentTransfer { get; set; }Optional. Check that the agent transferred the conversation to a different agent.
| Property Value | |
|---|---|
| Type | Description |
AgentTransfer |
|
ComparisonType
public EvaluationMetricsConfig.Types.ComparisonType ComparisonType { get; set; }Optional. The comparison type to use for the expectation check.
| Property Value | |
|---|---|
| Type | Description |
EvaluationMetricsConfigTypesComparisonType |
|
ConditionCase
public Evaluation.Types.GoldenExpectation.ConditionOneofCase ConditionCase { get; }| Property Value | |
|---|---|
| Type | Description |
EvaluationTypesGoldenExpectationConditionOneofCase |
|
ExpectationLevelMetricsThresholdsOverride
public EvaluationMetricsThresholds.Types.GoldenEvaluationMetricsThresholds.Types.ExpectationLevelMetricsThresholds ExpectationLevelMetricsThresholdsOverride { get; set; }Optional. Overrides metrics at the step level.
| Property Value | |
|---|---|
| Type | Description |
EvaluationMetricsThresholdsTypesGoldenEvaluationMetricsThresholdsTypesExpectationLevelMetricsThresholds |
|
HasNoToolCalls
public bool HasNoToolCalls { get; }Gets whether the "no_tool_calls" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
MockToolResponse
public ToolResponse MockToolResponse { get; set; }Optional. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
| Property Value | |
|---|---|
| Type | Description |
ToolResponse |
|
NoToolCalls
public bool NoToolCalls { get; set; }Optional. Check that no tools were called during this turn.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
Note
public string Note { get; set; }Optional. A note for this requirement, useful in reporting when specific checks fail. E.g., "Check_Payment_Tool_Called".
| Property Value | |
|---|---|
| Type | Description |
string |
|
SkipEvaluation
public bool SkipEvaluation { get; set; }Optional. If set to true, this specific expectation will not be evaluated.
| Property Value | |
|---|---|
| Type | Description |
bool |
|
ToolCall
public ToolCall ToolCall { get; set; }Optional. Check that a specific tool was called with the parameters.
| Property Value | |
|---|---|
| Type | Description |
ToolCall |
|
ToolResponse
public ToolResponse ToolResponse { get; set; }Optional. Check that a specific tool had the expected response.
| Property Value | |
|---|---|
| Type | Description |
ToolResponse |
|
UpdatedVariables
public Struct UpdatedVariables { get; set; }Optional. Check that the agent updated the session variables to the expected values. Used to also capture agent variable updates for golden evals.
| Property Value | |
|---|---|
| Type | Description |
Struct |
|