NAME
Google::Cloud::Ces::V1::Tool - Compiled Protocol Buffers messages for google/cloud/ces/v1/tool.proto
SYNOPSIS
use Google::Cloud::Ces::V1::Tool;
my $msg = Google::Cloud::Ces::V1::Tool::Tool->new({
client_function => $client_function,
open_api_tool => $open_api_tool,
google_search_tool => $google_search_tool,
connector_tool => $connector_tool,
});
# Read or update a field
my $val = $msg->client_function();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Ces::V1::Tool::Tool->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/ces/v1/tool.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::Tool::Tool
A tool represents an action that the CES agent can take to achieve certain goals.
Inherits from Protobuf::Message.
Accessors
$msg->client_function()/$msg->client_function($value)Type:
Message(Google::Cloud::Ces::V1::ClientFunction::ClientFunction)Optional. The client function.
$msg->open_api_tool()/$msg->open_api_tool($value)Type:
Message(Google::Cloud::Ces::V1::OpenApiTool::OpenApiTool)Optional. The open API tool.
$msg->google_search_tool()/$msg->google_search_tool($value)Type:
Message(Google::Cloud::Ces::V1::GoogleSearchTool::GoogleSearchTool)Optional. The google search tool.
$msg->connector_tool()/$msg->connector_tool($value)Type:
Message(Google::Cloud::Ces::V1::ConnectorTool::ConnectorTool)Optional. The Integration Connector tool.
$msg->data_store_tool()/$msg->data_store_tool($value)Type:
Message(Google::Cloud::Ces::V1::DataStoreTool::DataStoreTool)Optional. The data store tool.
$msg->python_function()/$msg->python_function($value)Type:
Message(Google::Cloud::Ces::V1::PythonFunction::PythonFunction)Optional. The python function tool.
$msg->mcp_tool()/$msg->mcp_tool($value)Type:
Message(Google::Cloud::Ces::V1::McpTool::McpTool)Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the MCP toolset.
$msg->file_search_tool()/$msg->file_search_tool($value)Type:
Message(Google::Cloud::Ces::V1::FileSearchTool::FileSearchTool)Optional. The file search tool.
$msg->system_tool()/$msg->system_tool($value)Type:
Message(Google::Cloud::Ces::V1::SystemTool::SystemTool)Optional. The system tool.
$msg->agent_tool()/$msg->agent_tool($value)Type:
Message(Google::Cloud::Ces::V1::AgentTool::AgentTool)Optional. The agent tool.
$msg->widget_tool()/$msg->widget_tool($value)Type:
Message(Google::Cloud::Ces::V1::WidgetTool::WidgetTool)Optional. The widget tool.
$msg->remote_agent_tool()/$msg->remote_agent_tool($value)Type:
Message(Google::Cloud::Ces::V1::AgentCard::RemoteAgentTool)Optional. The remote agent tool.
$msg->name()/$msg->name($value)Type:
StringIdentifier. The resource name of the tool. Format:
* `projects/{project}/locations/{location}/apps/{app}/tools/{tool}` for standalone tools. * `projects/{project}/locations/{location}/apps/{app}/toolsets/{toolset}/tools/{tool}` for tools retrieved from a toolset.
These tools are dynamic and output-only; they cannot be referenced directly where a tool is expected.
$msg->display_name()/$msg->display_name($value)Type:
StringOutput only. The display name of the tool, derived based on the tool's type. For example, display name of a [ClientFunction][Tool.ClientFunction] is derived from its `name` property.
$msg->execution_type()/$msg->execution_type($value)Type:
Enum(Google::Cloud::Ces::V1::ExecutionType)Optional. The execution type of the tool.
$msg->timeout()/$msg->timeout($value)Type:
Message(Google::Protobuf::Duration::Duration)Optional. The timeout for the tool execution. If not set, the default timeout is 30 seconds for `SYNCHRONOUS` tools and 60 seconds for `ASYNCHRONOUS` tools.
$msg->create_time()/$msg->create_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when the tool was created.
$msg->update_time()/$msg->update_time($value)Type:
Message(Google::Protobuf::Timestamp::Timestamp)Output only. Timestamp when the tool was last updated.
$msg->etag()/$msg->etag($value)Type:
StringEtag used to ensure the object hasn't changed during a read-modify-write operation. If the etag is empty, the update will overwrite any concurrent changes.
$msg->generated_summary()/$msg->generated_summary($value)Type:
StringOutput only. If the tool is generated by the LLM assistant, this field contains a descriptive summary of the generation.
$msg->tool_fake_config()/$msg->tool_fake_config($value)Type:
Message(Google::Cloud::Ces::V1::Fakes::ToolFakeConfig)Optional. Configuration for tool behavior in fake mode.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Ces::V1::Tool::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.