Class Evaluation.ScenarioExpectation.ToolExpectation (0.3.0)

public static final class Evaluation.ScenarioExpectation.ToolExpectation extends GeneratedMessage implements Evaluation.ScenarioExpectation.ToolExpectationOrBuilder

The tool call and response pair to be evaluated.

Protobuf type google.cloud.ces.v1beta.Evaluation.ScenarioExpectation.ToolExpectation

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > Evaluation.ScenarioExpectation.ToolExpectation

Static Fields

EXPECTED_TOOL_CALL_FIELD_NUMBER

public static final int EXPECTED_TOOL_CALL_FIELD_NUMBER
Field Value
Type Description
int

MOCK_TOOL_RESPONSE_FIELD_NUMBER

public static final int MOCK_TOOL_RESPONSE_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static Evaluation.ScenarioExpectation.ToolExpectation getDefaultInstance()
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static Evaluation.ScenarioExpectation.ToolExpectation.Builder newBuilder()
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

newBuilder(Evaluation.ScenarioExpectation.ToolExpectation prototype)

public static Evaluation.ScenarioExpectation.ToolExpectation.Builder newBuilder(Evaluation.ScenarioExpectation.ToolExpectation prototype)
Parameter
Name Description
prototype Evaluation.ScenarioExpectation.ToolExpectation
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

parseDelimitedFrom(InputStream input)

public static Evaluation.ScenarioExpectation.ToolExpectation parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Evaluation.ScenarioExpectation.ToolExpectation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static Evaluation.ScenarioExpectation.ToolExpectation parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Evaluation.ScenarioExpectation.ToolExpectation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Evaluation.ScenarioExpectation.ToolExpectation parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Evaluation.ScenarioExpectation.ToolExpectation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Evaluation.ScenarioExpectation.ToolExpectation parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Evaluation.ScenarioExpectation.ToolExpectation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static Evaluation.ScenarioExpectation.ToolExpectation parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Evaluation.ScenarioExpectation.ToolExpectation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static Evaluation.ScenarioExpectation.ToolExpectation parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Evaluation.ScenarioExpectation.ToolExpectation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<Evaluation.ScenarioExpectation.ToolExpectation> parser()
Returns
Type Description
Parser<ToolExpectation>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public Evaluation.ScenarioExpectation.ToolExpectation getDefaultInstanceForType()
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation

getExpectedToolCall()

public ToolCall getExpectedToolCall()

Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.

.google.cloud.ces.v1beta.ToolCall expected_tool_call = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolCall

The expectedToolCall.

getExpectedToolCallOrBuilder()

public ToolCallOrBuilder getExpectedToolCallOrBuilder()

Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.

.google.cloud.ces.v1beta.ToolCall expected_tool_call = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolCallOrBuilder

getMockToolResponse()

public ToolResponse getMockToolResponse()

Required. 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 = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolResponse

The mockToolResponse.

getMockToolResponseOrBuilder()

public ToolResponseOrBuilder getMockToolResponseOrBuilder()

Required. 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 = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
ToolResponseOrBuilder

getParserForType()

public Parser<Evaluation.ScenarioExpectation.ToolExpectation> getParserForType()
Returns
Type Description
Parser<ToolExpectation>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hasExpectedToolCall()

public boolean hasExpectedToolCall()

Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.

.google.cloud.ces.v1beta.ToolCall expected_tool_call = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the expectedToolCall field is set.

hasMockToolResponse()

public boolean hasMockToolResponse()

Required. 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 = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the mockToolResponse field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public Evaluation.ScenarioExpectation.ToolExpectation.Builder newBuilderForType()
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected Evaluation.ScenarioExpectation.ToolExpectation.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder
Overrides

toBuilder()

public Evaluation.ScenarioExpectation.ToolExpectation.Builder toBuilder()
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException