Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::EvaluationResult::GoldenResult::TurnReplayResult.
The result of running a single turn of the golden conversation.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#conversation
def conversation() -> ::String
Returns
- (::String) — Output only. The conversation that was generated for this turn.
#error_info
def error_info() -> ::Google::Cloud::Ces::V1beta::EvaluationErrorInfo
Returns
- (::Google::Cloud::Ces::V1beta::EvaluationErrorInfo) — Output only. Information about the error that occurred during this turn.
#expectation_outcome
def expectation_outcome() -> ::Array<::Google::Cloud::Ces::V1beta::EvaluationResult::GoldenExpectationOutcome>
Returns
- (::Array<::Google::Cloud::Ces::V1beta::EvaluationResult::GoldenExpectationOutcome>) — Output only. The outcome of each expectation.
#hallucination_result
def hallucination_result() -> ::Google::Cloud::Ces::V1beta::EvaluationResult::HallucinationResult
Returns
- (::Google::Cloud::Ces::V1beta::EvaluationResult::HallucinationResult) — Output only. The result of the hallucination check.
#overall_tool_invocation_result
def overall_tool_invocation_result() -> ::Google::Cloud::Ces::V1beta::EvaluationResult::OverallToolInvocationResult
Returns
- (::Google::Cloud::Ces::V1beta::EvaluationResult::OverallToolInvocationResult) — Output only. The result of the overall tool invocation check.
#semantic_similarity_result
def semantic_similarity_result() -> ::Google::Cloud::Ces::V1beta::EvaluationResult::SemanticSimilarityResult
Returns
- (::Google::Cloud::Ces::V1beta::EvaluationResult::SemanticSimilarityResult) — Output only. The result of the semantic similarity check.
#span_latencies
def span_latencies() -> ::Array<::Google::Cloud::Ces::V1beta::EvaluationResult::SpanLatency>
Returns
- (::Array<::Google::Cloud::Ces::V1beta::EvaluationResult::SpanLatency>) — Output only. The latency of spans in the turn.
#tool_call_latencies
def tool_call_latencies() -> ::Array<::Google::Cloud::Ces::V1beta::EvaluationResult::ToolCallLatency>
Returns
- (::Array<::Google::Cloud::Ces::V1beta::EvaluationResult::ToolCallLatency>) — Output only. The latency of each tool call in the turn.
#tool_invocation_score
def tool_invocation_score() -> ::Float
Returns
- (::Float) — Output only. Deprecated. Use OverallToolInvocationResult instead.
#tool_ordered_invocation_score
def tool_ordered_invocation_score() -> ::Float
Returns
- (::Float) — 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.
#turn_latency
def turn_latency() -> ::Google::Protobuf::Duration
Returns
- (::Google::Protobuf::Duration) — Output only. Duration of the turn.