Service Client: Google::Cloud::Ces::V1::ToolService::ToolServiceClient
Client stub representing the remote ToolService gRPC service. Delegates call dispatching to Google::gRPC::Client.
target
The endpoint target address. Defaults to ces.googleapis.com:443.
credentials
The authentication credentials provider. Defaults to application default credentials via Google::Auth.
NAME
Google::Cloud::Ces::V1::ToolService - Compiled Protocol Buffers messages for google/cloud/ces/v1/tool_service.proto
SYNOPSIS
use Google::Cloud::Ces::V1::ToolService;
my $msg = Google::Cloud::Ces::V1::ToolService::ExecuteToolRequest->new({
tool => $tool,
toolset_tool => $toolset_tool,
variables => $variables,
context => $context,
});
# Read or update a field
my $val = $msg->tool();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1::ToolService::ExecuteToolRequest->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/ces/v1/tool_service.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Ces::V1::ToolService::ExecuteToolRequest
Request message for [ToolService.ExecuteTool][google.cloud.ces.v1.ToolService.ExecuteTool].
Inherits from Protobuf::Message.
Accessors
$msg->tool()/$msg->tool($value)Type:
StringOptional. The name of the tool to execute. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
$msg->toolset_tool()/$msg->toolset_tool($value)Type:
Message(Google::Cloud::Ces::V1::ToolsetTool::ToolsetTool)Optional. The toolset tool to execute. Only one tool should match the predicate from the toolset. Otherwise, an error will be returned.
$msg->variables()/$msg->variables($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. The variables that are available for the tool execution.
$msg->context()/$msg->context($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. The [ToolCallContext](https://docs.cloud.google.com/customer-engagement-ai/conversational-agents/ps/tool/python#environment for details) to be passed to the Python tool.
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the app which the tool/toolset belongs to. Format: `projects/{project}/locations/{location}/apps/{app}`
$msg->args()/$msg->args($value)Type:
Message(Google::Protobuf::Struct::Struct)Optional. The input parameters and values for the tool in JSON object format.
$msg->mock_config()/$msg->mock_config($value)Type:
Message(Google::Cloud::Ces::V1::SessionService::MockConfig)Optional. Mock configuration for the tool execution. If this field is set, tools that call other tools will be mocked based on the provided patterns and responses.
Google::Cloud::Ces::V1::ToolService::ExecuteToolResponse
Response message for [ToolService.ExecuteTool][google.cloud.ces.v1.ToolService.ExecuteTool].
Inherits from Protobuf::Message.
Accessors
$msg->tool()/$msg->tool($value)Type:
StringThe name of the tool that got executed. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
$msg->toolset_tool()/$msg->toolset_tool($value)Type:
Message(Google::Cloud::Ces::V1::ToolsetTool::ToolsetTool)The toolset tool that got executed.
$msg->response()/$msg->response($value)Type:
Message(Google::Protobuf::Struct::Struct)The tool execution result in JSON object format. Use "output" key to specify tool response and "error" key to specify error details (if any). If "output" and "error" keys are not specified, then whole "response" is treated as tool execution result.
$msg->variables()/$msg->variables($value)Type:
Message(Google::Protobuf::Struct::Struct)The variable values at the end of the tool execution.
$msg->citations()/$msg->citations($value)Type:
Message(Google::Cloud::Ces::V1::SessionService::Citations)Citations that provide the source information for the tool's execution.
$msg->google_search_suggestions()/$msg->google_search_suggestions($value)Type:
Message(Google::Cloud::Ces::V1::SearchSuggestions::GoogleSearchSuggestions)The suggestions returned from Google Search as a result of invoking the Google Search Tool during the tool execution.
Google::Cloud::Ces::V1::ToolService::RetrieveToolSchemaRequest
Request message for [ToolService.RetrieveToolSchema][google.cloud.ces.v1.ToolService.RetrieveToolSchema].
Inherits from Protobuf::Message.
Accessors
$msg->tool()/$msg->tool($value)Type:
StringOptional. The name of the tool to retrieve the schema for. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool}
$msg->toolset_tool()/$msg->toolset_tool($value)Type:
Message(Google::Cloud::Ces::V1::ToolsetTool::ToolsetTool)Optional. The toolset tool to retrieve the schema for. Only one tool should match the predicate from the toolset. Otherwise, an error will be returned.
$msg->parent()/$msg->parent($value)Type:
StringRequired. The resource name of the app which the tool/toolset belongs to. Format: `projects/{project}/locations/{location}/apps/{app}`
Google::Cloud::Ces::V1::ToolService::RetrieveToolSchemaResponse
Response message for [ToolService.RetrieveToolSchema][google.cloud.ces.v1.ToolService.RetrieveToolSchema].
Inherits from Protobuf::Message.
Accessors
$msg->tool()/$msg->tool($value)Type:
StringThe name of the tool that the schema is for. Format: `projects/{project}/locations/{location}/apps/{app}/tools/{tool}`
$msg->toolset_tool()/$msg->toolset_tool($value)Type:
Message(Google::Cloud::Ces::V1::ToolsetTool::ToolsetTool)The toolset tool that the schema is for.
$msg->input_schema()/$msg->input_schema($value)Type:
Message(Google::Cloud::Ces::V1::Schema::Schema)The schema of the tool input parameters.
$msg->output_schema()/$msg->output_schema($value)Type:
Message(Google::Cloud::Ces::V1::Schema::Schema)The schema of the tool output parameters.
Google::Cloud::Ces::V1::ToolService::RetrieveToolsRequest
Request message for [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools].
Inherits from Protobuf::Message.
Accessors
$msg->toolset()/$msg->toolset($value)Type:
StringRequired. The name of the toolset to retrieve the tools for. Format: `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}`
$msg->tool_ids()/$msg->tool_ids($value)Type:
StringOptional. The identifiers of the tools to retrieve from the toolset. If empty, all tools in the toolset will be returned.
$msg->bypass_persistence_config()/$msg->bypass_persistence_config($value)Type:
BoolOptional. If true, the returned tools will contain raw descriptions and schemas directly from the server, bypassing any stored persistence configurations (overrides/snapshots).
Google::Cloud::Ces::V1::ToolService::RetrieveToolsResponse
Response message for [ToolService.RetrieveTools][google.cloud.ces.v1.ToolService.RetrieveTools].
Inherits from Protobuf::Message.
Accessors
$msg->tools()/$msg->tools($value)Type:
Message(Google::Cloud::Ces::V1::Tool::Tool)The list of tools that are included in the specified toolset.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Ces::V1::ToolService::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.