Interface Evaluation.ScenarioExpectation.ToolExpectationOrBuilder (0.3.0)

public static interface Evaluation.ScenarioExpectation.ToolExpectationOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getExpectedToolCall()

public abstract 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 abstract 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 abstract 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 abstract 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 abstract 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 abstract 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.