Reference documentation and code samples for the Google Cloud Ces V1 Client class Tool.
A tool represents an action that the CES agent can take to achieve certain goals.
Generated from protobuf message google.cloud.ces.v1.Tool
Namespace
Google \ Cloud \ Ces \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ client_function
↳ open_api_tool
↳ google_search_tool
↳ connector_tool
↳ data_store_tool
↳ python_function
↳ mcp_tool
McpTool
Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the MCP toolset.
↳ file_search_tool
↳ system_tool
↳ agent_tool
↳ widget_tool
↳ name
string
Identifier. 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.
↳ display_name
string
Output only. The display name of the tool, derived based on the tool's type. For example, display name of a ClientFunction
is derived from its name
property.
↳ execution_type
int
Optional. The execution type of the tool.
↳ create_time
↳ update_time
↳ etag
string
Etag 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.
↳ generated_summary
string
Output only. If the tool is generated by the LLM assistant, this field contains a descriptive summary of the generation.
↳ tool_fake_config
getClientFunction
Optional. The client function.
hasClientFunction
setClientFunction
Optional. The client function.
$this
getOpenApiTool
Optional. The open API tool.
hasOpenApiTool
setOpenApiTool
Optional. The open API tool.
$this
getGoogleSearchTool
Optional. The google search tool.
hasGoogleSearchTool
setGoogleSearchTool
Optional. The google search tool.
$this
getConnectorTool
Optional. The Integration Connector tool.
hasConnectorTool
setConnectorTool
Optional. The Integration Connector tool.
$this
getDataStoreTool
Optional. The data store tool.
hasDataStoreTool
setDataStoreTool
Optional. The data store tool.
$this
getPythonFunction
Optional. The python function tool.
hasPythonFunction
setPythonFunction
Optional. The python function tool.
$this
getMcpTool
Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the MCP toolset.
hasMcpTool
setMcpTool
Optional. The MCP tool. An MCP tool cannot be created or updated directly and is managed by the MCP toolset.
$this
getFileSearchTool
Optional. The file search tool.
hasFileSearchTool
setFileSearchTool
Optional. The file search tool.
$this
getSystemTool
Optional. The system tool.
hasSystemTool
setSystemTool
Optional. The system tool.
$this
getAgentTool
Optional. The agent tool.
hasAgentTool
setAgentTool
Optional. The agent tool.
$this
getWidgetTool
Optional. The widget tool.
hasWidgetTool
setWidgetTool
Optional. The widget tool.
$this
getName
Identifier. 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.
string
setName
Identifier. 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.
var
string
$this
getDisplayName
Output only. The display name of the tool, derived based on the tool's
type. For example, display name of a ClientFunction
is derived from its name
property.
string
setDisplayName
Output only. The display name of the tool, derived based on the tool's
type. For example, display name of a ClientFunction
is derived from its name
property.
var
string
$this
getExecutionType
Optional. The execution type of the tool.
setExecutionType
Optional. The execution type of the tool.
$this
getCreateTime
Output only. Timestamp when the tool was created.
hasCreateTime
clearCreateTime
setCreateTime
Output only. Timestamp when the tool was created.
$this
getUpdateTime
Output only. Timestamp when the tool was last updated.
hasUpdateTime
clearUpdateTime
setUpdateTime
Output only. Timestamp when the tool was last updated.
$this
getEtag
Etag 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.
string
setEtag
Etag 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.
var
string
$this
getGeneratedSummary
Output only. If the tool is generated by the LLM assistant, this field contains a descriptive summary of the generation.
string
setGeneratedSummary
Output only. If the tool is generated by the LLM assistant, this field contains a descriptive summary of the generation.
var
string
$this
getToolFakeConfig
Optional. Configuration for tool behavior in fake mode.
hasToolFakeConfig
clearToolFakeConfig
setToolFakeConfig
Optional. Configuration for tool behavior in fake mode.
$this
getToolType
string

