Class Evaluation.ScenarioExpectation.ToolExpectation.Builder (0.3.0)

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

The tool call and response pair to be evaluated.

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

Static Methods

getDescriptor()

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

Methods

build()

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

buildPartial()

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

clear()

public Evaluation.ScenarioExpectation.ToolExpectation.Builder clear()
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder
Overrides

clearExpectedToolCall()

public Evaluation.ScenarioExpectation.ToolExpectation.Builder clearExpectedToolCall()

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
Evaluation.ScenarioExpectation.ToolExpectation.Builder

clearMockToolResponse()

public Evaluation.ScenarioExpectation.ToolExpectation.Builder clearMockToolResponse()

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
Evaluation.ScenarioExpectation.ToolExpectation.Builder

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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.

getExpectedToolCallBuilder()

public ToolCall.Builder getExpectedToolCallBuilder()

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.Builder

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.

getMockToolResponseBuilder()

public ToolResponse.Builder getMockToolResponseBuilder()

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.Builder

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

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.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeExpectedToolCall(ToolCall value)

public Evaluation.ScenarioExpectation.ToolExpectation.Builder mergeExpectedToolCall(ToolCall value)

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];

Parameter
Name Description
value ToolCall
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

mergeFrom(Evaluation.ScenarioExpectation.ToolExpectation other)

public Evaluation.ScenarioExpectation.ToolExpectation.Builder mergeFrom(Evaluation.ScenarioExpectation.ToolExpectation other)
Parameter
Name Description
other Evaluation.ScenarioExpectation.ToolExpectation
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Evaluation.ScenarioExpectation.ToolExpectation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Evaluation.ScenarioExpectation.ToolExpectation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder
Overrides

mergeMockToolResponse(ToolResponse value)

public Evaluation.ScenarioExpectation.ToolExpectation.Builder mergeMockToolResponse(ToolResponse value)

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];

Parameter
Name Description
value ToolResponse
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

setExpectedToolCall(ToolCall value)

public Evaluation.ScenarioExpectation.ToolExpectation.Builder setExpectedToolCall(ToolCall value)

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];

Parameter
Name Description
value ToolCall
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

setExpectedToolCall(ToolCall.Builder builderForValue)

public Evaluation.ScenarioExpectation.ToolExpectation.Builder setExpectedToolCall(ToolCall.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ToolCall.Builder
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

setMockToolResponse(ToolResponse value)

public Evaluation.ScenarioExpectation.ToolExpectation.Builder setMockToolResponse(ToolResponse value)

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];

Parameter
Name Description
value ToolResponse
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder

setMockToolResponse(ToolResponse.Builder builderForValue)

public Evaluation.ScenarioExpectation.ToolExpectation.Builder setMockToolResponse(ToolResponse.Builder builderForValue)

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];

Parameter
Name Description
builderForValue ToolResponse.Builder
Returns
Type Description
Evaluation.ScenarioExpectation.ToolExpectation.Builder