public static final class EvaluationResult.GoldenResult.TurnReplayResult extends GeneratedMessage implements EvaluationResult.GoldenResult.TurnReplayResultOrBuilder
The result of running a single turn of the golden conversation.
Protobuf type google.cloud.ces.v1beta.EvaluationResult.GoldenResult.TurnReplayResult
Inherited Members
com.google.protobuf.GeneratedMessage.<ContainingT,T>newFileScopedGeneratedExtension(java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ContainingT,T>newMessageScopedGeneratedExtension(com.google.protobuf.Message,int,java.lang.Class<?>,com.google.protobuf.Message)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessage.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessage.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessage.<V>serializeBooleanMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Boolean,V>,com.google.protobuf.MapEntry<java.lang.Boolean,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeIntegerMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Integer,V>,com.google.protobuf.MapEntry<java.lang.Integer,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeLongMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.Long,V>,com.google.protobuf.MapEntry<java.lang.Long,V>,int)
com.google.protobuf.GeneratedMessage.<V>serializeStringMapTo(com.google.protobuf.CodedOutputStream,com.google.protobuf.MapField<java.lang.String,V>,com.google.protobuf.MapEntry<java.lang.String,V>,int)
com.google.protobuf.GeneratedMessage.canUseUnsafe()
com.google.protobuf.GeneratedMessage.emptyBooleanList()
com.google.protobuf.GeneratedMessage.emptyDoubleList()
com.google.protobuf.GeneratedMessage.emptyFloatList()
com.google.protobuf.GeneratedMessage.emptyIntList()
com.google.protobuf.GeneratedMessage.emptyLongList()
com.google.protobuf.GeneratedMessage.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessage.isStringEmpty(java.lang.Object)
com.google.protobuf.GeneratedMessage.mergeFromAndMakeImmutableInternal(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite)
com.google.protobuf.GeneratedMessage.newInstance(com.google.protobuf.GeneratedMessage.UnusedPrivateParameter)
com.google.protobuf.GeneratedMessage.parseUnknownFieldProto3(com.google.protobuf.CodedInputStream,com.google.protobuf.UnknownFieldSet.Builder,com.google.protobuf.ExtensionRegistryLite,int)
Static Fields
CONVERSATION_FIELD_NUMBER
public static final int CONVERSATION_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
ERROR_INFO_FIELD_NUMBER
public static final int ERROR_INFO_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
EXPECTATION_OUTCOME_FIELD_NUMBER
public static final int EXPECTATION_OUTCOME_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
HALLUCINATION_RESULT_FIELD_NUMBER
public static final int HALLUCINATION_RESULT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int OVERALL_TOOL_INVOCATION_RESULT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SEMANTIC_SIMILARITY_RESULT_FIELD_NUMBER
public static final int SEMANTIC_SIMILARITY_RESULT_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
SPAN_LATENCIES_FIELD_NUMBER
public static final int SPAN_LATENCIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TOOL_CALL_LATENCIES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TOOL_INVOCATION_SCORE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TOOL_ORDERED_INVOCATION_SCORE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
TURN_LATENCY_FIELD_NUMBER
public static final int TURN_LATENCY_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static EvaluationResult.GoldenResult.TurnReplayResult getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static EvaluationResult.GoldenResult.TurnReplayResult.Builder newBuilder()
newBuilder(EvaluationResult.GoldenResult.TurnReplayResult prototype)
public static EvaluationResult.GoldenResult.TurnReplayResult.Builder newBuilder(EvaluationResult.GoldenResult.TurnReplayResult prototype)
public static EvaluationResult.GoldenResult.TurnReplayResult parseDelimitedFrom(InputStream input)
public static EvaluationResult.GoldenResult.TurnReplayResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static EvaluationResult.GoldenResult.TurnReplayResult parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static EvaluationResult.GoldenResult.TurnReplayResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static EvaluationResult.GoldenResult.TurnReplayResult parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EvaluationResult.GoldenResult.TurnReplayResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static EvaluationResult.GoldenResult.TurnReplayResult parseFrom(CodedInputStream input)
public static EvaluationResult.GoldenResult.TurnReplayResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static EvaluationResult.GoldenResult.TurnReplayResult parseFrom(InputStream input)
public static EvaluationResult.GoldenResult.TurnReplayResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static EvaluationResult.GoldenResult.TurnReplayResult parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static EvaluationResult.GoldenResult.TurnReplayResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<EvaluationResult.GoldenResult.TurnReplayResult> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getConversation()
public String getConversation()
Output only. The conversation that was generated for this turn.
string conversation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
String |
The conversation.
|
getConversationBytes()
public ByteString getConversationBytes()
Output only. The conversation that was generated for this turn.
string conversation = 1 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
| Returns |
| Type |
Description |
ByteString |
The bytes for conversation.
|
getDefaultInstanceForType()
public EvaluationResult.GoldenResult.TurnReplayResult getDefaultInstanceForType()
getErrorInfo()
public EvaluationErrorInfo getErrorInfo()
Output only. Information about the error that occurred during this
turn.
.google.cloud.ces.v1beta.EvaluationErrorInfo error_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getErrorInfoOrBuilder()
public EvaluationErrorInfoOrBuilder getErrorInfoOrBuilder()
Output only. Information about the error that occurred during this
turn.
.google.cloud.ces.v1beta.EvaluationErrorInfo error_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExpectationOutcome(int index)
public EvaluationResult.GoldenExpectationOutcome getExpectationOutcome(int index)
Output only. The outcome of each expectation.
repeated .google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome expectation_outcome = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getExpectationOutcomeCount()
public int getExpectationOutcomeCount()
Output only. The outcome of each expectation.
repeated .google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome expectation_outcome = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
|
getExpectationOutcomeList()
public List<EvaluationResult.GoldenExpectationOutcome> getExpectationOutcomeList()
Output only. The outcome of each expectation.
repeated .google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome expectation_outcome = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
getExpectationOutcomeOrBuilder(int index)
public EvaluationResult.GoldenExpectationOutcomeOrBuilder getExpectationOutcomeOrBuilder(int index)
Output only. The outcome of each expectation.
repeated .google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome expectation_outcome = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getExpectationOutcomeOrBuilderList()
public List<? extends EvaluationResult.GoldenExpectationOutcomeOrBuilder> getExpectationOutcomeOrBuilderList()
Output only. The outcome of each expectation.
repeated .google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcome expectation_outcome = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.ces.v1beta.EvaluationResult.GoldenExpectationOutcomeOrBuilder> |
|
getHallucinationResult()
public EvaluationResult.HallucinationResult getHallucinationResult()
Output only. The result of the hallucination check.
.google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
getHallucinationResultOrBuilder()
public EvaluationResult.HallucinationResultOrBuilder getHallucinationResultOrBuilder()
Output only. The result of the hallucination check.
.google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
public EvaluationResult.OverallToolInvocationResult getOverallToolInvocationResult()
Output only. The result of the overall tool invocation check.
.google.cloud.ces.v1beta.EvaluationResult.OverallToolInvocationResult overall_tool_invocation_result = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
public EvaluationResult.OverallToolInvocationResultOrBuilder getOverallToolInvocationResultOrBuilder()
Output only. The result of the overall tool invocation check.
.google.cloud.ces.v1beta.EvaluationResult.OverallToolInvocationResult overall_tool_invocation_result = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
getParserForType()
public Parser<EvaluationResult.GoldenResult.TurnReplayResult> getParserForType()
Overrides
getSemanticSimilarityResult()
public EvaluationResult.SemanticSimilarityResult getSemanticSimilarityResult()
Output only. The result of the semantic similarity check.
.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResult semantic_similarity_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSemanticSimilarityResultOrBuilder()
public EvaluationResult.SemanticSimilarityResultOrBuilder getSemanticSimilarityResultOrBuilder()
Output only. The result of the semantic similarity check.
.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResult semantic_similarity_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
getSpanLatencies(int index)
public EvaluationResult.SpanLatency getSpanLatencies(int index)
Output only. The latency of spans in the turn.
repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getSpanLatenciesCount()
public int getSpanLatenciesCount()
Output only. The latency of spans in the turn.
repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
|
getSpanLatenciesList()
public List<EvaluationResult.SpanLatency> getSpanLatenciesList()
Output only. The latency of spans in the turn.
repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
getSpanLatenciesOrBuilder(int index)
public EvaluationResult.SpanLatencyOrBuilder getSpanLatenciesOrBuilder(int index)
Output only. The latency of spans in the turn.
repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
getSpanLatenciesOrBuilderList()
public List<? extends EvaluationResult.SpanLatencyOrBuilder> getSpanLatenciesOrBuilderList()
Output only. The latency of spans in the turn.
repeated .google.cloud.ces.v1beta.EvaluationResult.SpanLatency span_latencies = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.ces.v1beta.EvaluationResult.SpanLatencyOrBuilder> |
|
public EvaluationResult.ToolCallLatency getToolCallLatencies(int index)
Output only. The latency of each tool call in the turn.
repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
public int getToolCallLatenciesCount()
Output only. The latency of each tool call in the turn.
repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
int |
|
public List<EvaluationResult.ToolCallLatency> getToolCallLatenciesList()
Output only. The latency of each tool call in the turn.
repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
public EvaluationResult.ToolCallLatencyOrBuilder getToolCallLatenciesOrBuilder(int index)
Output only. The latency of each tool call in the turn.
repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter |
| Name |
Description |
index |
int
|
public List<? extends EvaluationResult.ToolCallLatencyOrBuilder> getToolCallLatenciesOrBuilderList()
Output only. The latency of each tool call in the turn.
repeated .google.cloud.ces.v1beta.EvaluationResult.ToolCallLatency tool_call_latencies = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
List<? extends com.google.cloud.ces.v1beta.EvaluationResult.ToolCallLatencyOrBuilder> |
|
public float getToolInvocationScore()
Deprecated. google.cloud.ces.v1beta.EvaluationResult.GoldenResult.TurnReplayResult.tool_invocation_score
is deprecated. See google/cloud/ces/v1beta/evaluation.proto;l=593
Output only. Deprecated. Use OverallToolInvocationResult instead.
float tool_invocation_score = 4 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
float |
The toolInvocationScore.
|
public float getToolOrderedInvocationScore()
Output only. The overall tool ordered invocation score for this turn.
This indicates the overall percent of tools from the expected turn that
were actually invoked in the expected order.
optional float tool_ordered_invocation_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
float |
The toolOrderedInvocationScore.
|
getTurnLatency()
public Duration getTurnLatency()
Output only. Duration of the turn.
.google.protobuf.Duration turn_latency = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
Duration |
The turnLatency.
|
getTurnLatencyOrBuilder()
public DurationOrBuilder getTurnLatencyOrBuilder()
Output only. Duration of the turn.
.google.protobuf.Duration turn_latency = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
hasErrorInfo()
public boolean hasErrorInfo()
Output only. Information about the error that occurred during this
turn.
.google.cloud.ces.v1beta.EvaluationErrorInfo error_info = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the errorInfo field is set.
|
hasHallucinationResult()
public boolean hasHallucinationResult()
Output only. The result of the hallucination check.
.google.cloud.ces.v1beta.EvaluationResult.HallucinationResult hallucination_result = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the hallucinationResult field is set.
|
public boolean hasOverallToolInvocationResult()
Output only. The result of the overall tool invocation check.
.google.cloud.ces.v1beta.EvaluationResult.OverallToolInvocationResult overall_tool_invocation_result = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the overallToolInvocationResult field is set.
|
hasSemanticSimilarityResult()
public boolean hasSemanticSimilarityResult()
Output only. The result of the semantic similarity check.
.google.cloud.ces.v1beta.EvaluationResult.SemanticSimilarityResult semantic_similarity_result = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the semanticSimilarityResult field is set.
|
public boolean hasToolOrderedInvocationScore()
Output only. The overall tool ordered invocation score for this turn.
This indicates the overall percent of tools from the expected turn that
were actually invoked in the expected order.
optional float tool_ordered_invocation_score = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the toolOrderedInvocationScore field is set.
|
hasTurnLatency()
public boolean hasTurnLatency()
Output only. Duration of the turn.
.google.protobuf.Duration turn_latency = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns |
| Type |
Description |
boolean |
Whether the turnLatency field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public EvaluationResult.GoldenResult.TurnReplayResult.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected EvaluationResult.GoldenResult.TurnReplayResult.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public EvaluationResult.GoldenResult.TurnReplayResult.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides