Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::Evaluation::ScenarioExpectation::ToolExpectation.
The tool call and response pair to be evaluated.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#expected_tool_call
def expected_tool_call() -> ::Google::Cloud::Ces::V1beta::ToolCall
Returns
- (::Google::Cloud::Ces::V1beta::ToolCall) — Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
#expected_tool_call=
def expected_tool_call=(value) -> ::Google::Cloud::Ces::V1beta::ToolCall
Parameter
- value (::Google::Cloud::Ces::V1beta::ToolCall) — Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
Returns
- (::Google::Cloud::Ces::V1beta::ToolCall) — Required. The expected tool call, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
#mock_tool_response
def mock_tool_response() -> ::Google::Cloud::Ces::V1beta::ToolResponse
Returns
- (::Google::Cloud::Ces::V1beta::ToolResponse) — Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
#mock_tool_response=
def mock_tool_response=(value) -> ::Google::Cloud::Ces::V1beta::ToolResponse
Parameter
- value (::Google::Cloud::Ces::V1beta::ToolResponse) — Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.
Returns
- (::Google::Cloud::Ces::V1beta::ToolResponse) — Required. The tool response to mock, with the parameters of interest specified. Any parameters not specified will be hallucinated by the LLM.