0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class ExecuteToolRequest.

Request message for
[ToolService.ExecuteTool](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.Client.ToolServiceClient.md.txt#_Google_Cloud_Ces_V1_Client_ToolServiceClient__executeTool__).

Generated from protobuf message `google.cloud.ces.v1.ExecuteToolRequest`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ tool` | `string` Optional. The name of the tool to execute. Format: projects/{project}/locations/{location}/apps/{app}/tools/{tool} |
| `↳ toolset_tool` | `ToolsetTool` Optional. The toolset tool to execute. Only one tool should match the predicate from the toolset. Otherwise, an error will be returned. |
| `↳ variables` | `Google\Protobuf\Struct` Optional. The variables that are available for the tool execution. |
| `↳ context` | `Google\Protobuf\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. |
| `↳ parent` | `string` Required. The resource name of the app which the tool/toolset belongs to. Format: `projects/{project}/locations/{location}/apps/{app}` |
| `↳ args` | `Google\Protobuf\Struct` Optional. The input parameters and values for the tool in JSON object format. |
| `↳ mock_config` | `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. |

### getTool

Optional. The name of the tool to execute.

Format:
projects/{project}/locations/{location}/apps/{app}/tools/{tool}

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### hasTool

### setTool

Optional. The name of the tool to execute.

Format:
projects/{project}/locations/{location}/apps/{app}/tools/{tool}

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getToolsetTool

Optional. The toolset tool to execute. Only one tool should match the
predicate from the toolset. Otherwise, an error will be returned.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ToolsetTool|null` |   |

### hasToolsetTool

### setToolsetTool

Optional. The toolset tool to execute. Only one tool should match the
predicate from the toolset. Otherwise, an error will be returned.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `ToolsetTool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getVariables

Optional. The variables that are available for the tool execution.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Struct|null` |   |

### hasVariables

### setVariables

Optional. The variables that are available for the tool execution.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Struct` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getContext

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Struct|null` |   |

### hasContext

### setContext

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Struct` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getParent

Required. The resource name of the app which the tool/toolset belongs to.

Format: `projects/{project}/locations/{location}/apps/{app}`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setParent

Required. The resource name of the app which the tool/toolset belongs to.

Format: `projects/{project}/locations/{location}/apps/{app}`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getArgs

Optional. The input parameters and values for the tool in JSON object
format.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\Struct|null` |   |

### hasArgs

### clearArgs

### setArgs

Optional. The input parameters and values for the tool in JSON object
format.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `Google\Protobuf\Struct` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMockConfig

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.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `MockConfig|null` |   |

### hasMockConfig

### clearMockConfig

### setMockConfig

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.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `MockConfig` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getToolIdentifier

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### getToolExecutionContext

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |