public static final class Evaluation.GoldenExpectation extends GeneratedMessage implements Evaluation.GoldenExpectationOrBuilder
Represents a single, checkable requirement.
Protobuf type google.cloud.ces.v1beta.Evaluation.GoldenExpectation
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
AGENT_RESPONSE_FIELD_NUMBER
public static final int AGENT_RESPONSE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
AGENT_TRANSFER_FIELD_NUMBER
public static final int AGENT_TRANSFER_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int MOCK_TOOL_RESPONSE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
NOTE_FIELD_NUMBER
public static final int NOTE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TOOL_CALL_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
public static final int TOOL_RESPONSE_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
UPDATED_VARIABLES_FIELD_NUMBER
public static final int UPDATED_VARIABLES_FIELD_NUMBER
| Field Value |
| Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static Evaluation.GoldenExpectation getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Evaluation.GoldenExpectation.Builder newBuilder()
newBuilder(Evaluation.GoldenExpectation prototype)
public static Evaluation.GoldenExpectation.Builder newBuilder(Evaluation.GoldenExpectation prototype)
public static Evaluation.GoldenExpectation parseDelimitedFrom(InputStream input)
public static Evaluation.GoldenExpectation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Evaluation.GoldenExpectation parseFrom(byte[] data)
| Parameter |
| Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Evaluation.GoldenExpectation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Evaluation.GoldenExpectation parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Evaluation.GoldenExpectation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Evaluation.GoldenExpectation parseFrom(CodedInputStream input)
public static Evaluation.GoldenExpectation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Evaluation.GoldenExpectation parseFrom(InputStream input)
public static Evaluation.GoldenExpectation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Evaluation.GoldenExpectation parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Evaluation.GoldenExpectation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Evaluation.GoldenExpectation> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
| Parameter |
| Name |
Description |
obj |
Object
|
Overrides
getAgentResponse()
public Message getAgentResponse()
Optional. Check that the agent responded with the correct response. The
role "agent" is implied.
.google.cloud.ces.v1beta.Message agent_response = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Message |
The agentResponse.
|
getAgentResponseOrBuilder()
public MessageOrBuilder getAgentResponseOrBuilder()
Optional. Check that the agent responded with the correct response. The
role "agent" is implied.
.google.cloud.ces.v1beta.Message agent_response = 4 [(.google.api.field_behavior) = OPTIONAL];
getAgentTransfer()
public AgentTransfer getAgentTransfer()
Optional. Check that the agent transferred the conversation to a
different agent.
.google.cloud.ces.v1beta.AgentTransfer agent_transfer = 5 [(.google.api.field_behavior) = OPTIONAL];
getAgentTransferOrBuilder()
public AgentTransferOrBuilder getAgentTransferOrBuilder()
Optional. Check that the agent transferred the conversation to a
different agent.
.google.cloud.ces.v1beta.AgentTransfer agent_transfer = 5 [(.google.api.field_behavior) = OPTIONAL];
getConditionCase()
public Evaluation.GoldenExpectation.ConditionCase getConditionCase()
getDefaultInstanceForType()
public Evaluation.GoldenExpectation getDefaultInstanceForType()
public ToolResponse getMockToolResponse()
Optional. The tool response to mock, with the parameters of interest
specified. Any parameters not specified will be hallucinated by the
LLM.
.google.cloud.ces.v1beta.ToolResponse mock_tool_response = 7 [(.google.api.field_behavior) = OPTIONAL];
public ToolResponseOrBuilder getMockToolResponseOrBuilder()
Optional. The tool response to mock, with the parameters of interest
specified. Any parameters not specified will be hallucinated by the
LLM.
.google.cloud.ces.v1beta.ToolResponse mock_tool_response = 7 [(.google.api.field_behavior) = OPTIONAL];
getNote()
Optional. A note for this requirement, useful in reporting when specific
checks fail. E.g., "Check_Payment_Tool_Called".
string note = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
String |
The note.
|
getNoteBytes()
public ByteString getNoteBytes()
Optional. A note for this requirement, useful in reporting when specific
checks fail. E.g., "Check_Payment_Tool_Called".
string note = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ByteString |
The bytes for note.
|
getParserForType()
public Parser<Evaluation.GoldenExpectation> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
| Returns |
| Type |
Description |
int |
|
Overrides
public ToolCall getToolCall()
Optional. Check that a specific tool was called with the parameters.
.google.cloud.ces.v1beta.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
ToolCall |
The toolCall.
|
public ToolCallOrBuilder getToolCallOrBuilder()
Optional. Check that a specific tool was called with the parameters.
.google.cloud.ces.v1beta.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];
public ToolResponse getToolResponse()
Optional. Check that a specific tool had the expected response.
.google.cloud.ces.v1beta.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];
public ToolResponseOrBuilder getToolResponseOrBuilder()
Optional. Check that a specific tool had the expected response.
.google.cloud.ces.v1beta.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];
getUpdatedVariables()
public Struct getUpdatedVariables()
Optional. Check that the agent updated the session variables to the
expected values. Used to also capture agent variable updates for golden
evals.
.google.protobuf.Struct updated_variables = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
Struct |
The updatedVariables.
|
getUpdatedVariablesOrBuilder()
public StructOrBuilder getUpdatedVariablesOrBuilder()
Optional. Check that the agent updated the session variables to the
expected values. Used to also capture agent variable updates for golden
evals.
.google.protobuf.Struct updated_variables = 6 [(.google.api.field_behavior) = OPTIONAL];
hasAgentResponse()
public boolean hasAgentResponse()
Optional. Check that the agent responded with the correct response. The
role "agent" is implied.
.google.cloud.ces.v1beta.Message agent_response = 4 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the agentResponse field is set.
|
hasAgentTransfer()
public boolean hasAgentTransfer()
Optional. Check that the agent transferred the conversation to a
different agent.
.google.cloud.ces.v1beta.AgentTransfer agent_transfer = 5 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the agentTransfer field is set.
|
public boolean hasMockToolResponse()
Optional. The tool response to mock, with the parameters of interest
specified. Any parameters not specified will be hallucinated by the
LLM.
.google.cloud.ces.v1beta.ToolResponse mock_tool_response = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the mockToolResponse field is set.
|
public boolean hasToolCall()
Optional. Check that a specific tool was called with the parameters.
.google.cloud.ces.v1beta.ToolCall tool_call = 2 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the toolCall field is set.
|
public boolean hasToolResponse()
Optional. Check that a specific tool had the expected response.
.google.cloud.ces.v1beta.ToolResponse tool_response = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the toolResponse field is set.
|
hasUpdatedVariables()
public boolean hasUpdatedVariables()
Optional. Check that the agent updated the session variables to the
expected values. Used to also capture agent variable updates for golden
evals.
.google.protobuf.Struct updated_variables = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns |
| Type |
Description |
boolean |
Whether the updatedVariables field is set.
|
hashCode()
| Returns |
| Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Evaluation.GoldenExpectation.Builder newBuilderForType()
newBuilderForType(AbstractMessage.BuilderParent parent)
protected Evaluation.GoldenExpectation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Overrides
toBuilder()
public Evaluation.GoldenExpectation.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides