Skip to content

Commit d6f7578

Browse files
1 parent 66fda3a commit d6f7578

12 files changed

Lines changed: 170 additions & 30 deletions

src/CustomerEngagementSuite/ApiKeyConfig.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class ApiKeyConfig extends \Google\Model
2121
{
2222
/**
23-
* Unspecified. This value should not be unused.
23+
* Unspecified. This value should not be used.
2424
*/
2525
public const REQUEST_LOCATION_REQUEST_LOCATION_UNSPECIFIED = 'REQUEST_LOCATION_UNSPECIFIED';
2626
/**

src/CustomerEngagementSuite/ChannelProfile.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,10 @@ class ChannelProfile extends \Google\Model
4747
* Five9 channel.
4848
*/
4949
public const CHANNEL_TYPE_FIVE9 = 'FIVE9';
50+
/**
51+
* Third party contact center integration channel.
52+
*/
53+
public const CHANNEL_TYPE_CONTACT_CENTER_INTEGRATION = 'CONTACT_CENTER_INTEGRATION';
5054
/**
5155
* Optional. The type of the channel profile.
5256
*
@@ -90,7 +94,7 @@ class ChannelProfile extends \Google\Model
9094
* Optional. The type of the channel profile.
9195
*
9296
* Accepted values: UNKNOWN, WEB_UI, API, TWILIO, GOOGLE_TELEPHONY_PLATFORM,
93-
* CONTACT_CENTER_AS_A_SERVICE, FIVE9
97+
* CONTACT_CENTER_AS_A_SERVICE, FIVE9, CONTACT_CENTER_INTEGRATION
9498
*
9599
* @param self::CHANNEL_TYPE_* $channelType
96100
*/

src/CustomerEngagementSuite/CitationsCitedChunk.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
class CitationsCitedChunk extends \Google\Model
2121
{
2222
/**
23-
* Text used for citaiton.
23+
* Text used for citation.
2424
*
2525
* @var string
2626
*/
@@ -39,7 +39,7 @@ class CitationsCitedChunk extends \Google\Model
3939
public $uri;
4040

4141
/**
42-
* Text used for citaiton.
42+
* Text used for citation.
4343
*
4444
* @param string $text
4545
*/

src/CustomerEngagementSuite/EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds.php

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ class EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholds extends \Goog
2121
{
2222
protected $expectationLevelMetricsThresholdsType = EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsExpectationLevelMetricsThresholds::class;
2323
protected $expectationLevelMetricsThresholdsDataType = '';
24+
protected $toolMatchingSettingsType = EvaluationMetricsThresholdsToolMatchingSettings::class;
25+
protected $toolMatchingSettingsDataType = '';
2426
protected $turnLevelMetricsThresholdsType = EvaluationMetricsThresholdsGoldenEvaluationMetricsThresholdsTurnLevelMetricsThresholds::class;
2527
protected $turnLevelMetricsThresholdsDataType = '';
2628

@@ -40,6 +42,24 @@ public function getExpectationLevelMetricsThresholds()
4042
{
4143
return $this->expectationLevelMetricsThresholds;
4244
}
45+
/**
46+
* Optional. The tool matching settings. An extra tool call is a tool call
47+
* that is present in the execution but does not match any tool call in the
48+
* golden expectation.
49+
*
50+
* @param EvaluationMetricsThresholdsToolMatchingSettings $toolMatchingSettings
51+
*/
52+
public function setToolMatchingSettings(EvaluationMetricsThresholdsToolMatchingSettings $toolMatchingSettings)
53+
{
54+
$this->toolMatchingSettings = $toolMatchingSettings;
55+
}
56+
/**
57+
* @return EvaluationMetricsThresholdsToolMatchingSettings
58+
*/
59+
public function getToolMatchingSettings()
60+
{
61+
return $this->toolMatchingSettings;
62+
}
4363
/**
4464
* Optional. The turn level metrics thresholds.
4565
*
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
<?php
2+
/*
3+
* Copyright 2014 Google Inc.
4+
*
5+
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
6+
* use this file except in compliance with the License. You may obtain a copy of
7+
* the License at
8+
*
9+
* http://www.apache.org/licenses/LICENSE-2.0
10+
*
11+
* Unless required by applicable law or agreed to in writing, software
12+
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13+
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14+
* License for the specific language governing permissions and limitations under
15+
* the License.
16+
*/
17+
18+
namespace Google\Service\CustomerEngagementSuite;
19+
20+
class EvaluationMetricsThresholdsToolMatchingSettings extends \Google\Model
21+
{
22+
/**
23+
* Unspecified behavior. Defaults to FAIL.
24+
*/
25+
public const EXTRA_TOOL_CALL_BEHAVIOR_EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED = 'EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED';
26+
/**
27+
* Fail the evaluation if an extra tool call is encountered.
28+
*/
29+
public const EXTRA_TOOL_CALL_BEHAVIOR_FAIL = 'FAIL';
30+
/**
31+
* Allow the extra tool call.
32+
*/
33+
public const EXTRA_TOOL_CALL_BEHAVIOR_ALLOW = 'ALLOW';
34+
/**
35+
* Optional. Behavior for extra tool calls. Defaults to FAIL.
36+
*
37+
* @var string
38+
*/
39+
public $extraToolCallBehavior;
40+
41+
/**
42+
* Optional. Behavior for extra tool calls. Defaults to FAIL.
43+
*
44+
* Accepted values: EXTRA_TOOL_CALL_BEHAVIOR_UNSPECIFIED, FAIL, ALLOW
45+
*
46+
* @param self::EXTRA_TOOL_CALL_BEHAVIOR_* $extraToolCallBehavior
47+
*/
48+
public function setExtraToolCallBehavior($extraToolCallBehavior)
49+
{
50+
$this->extraToolCallBehavior = $extraToolCallBehavior;
51+
}
52+
/**
53+
* @return self::EXTRA_TOOL_CALL_BEHAVIOR_*
54+
*/
55+
public function getExtraToolCallBehavior()
56+
{
57+
return $this->extraToolCallBehavior;
58+
}
59+
}
60+
61+
// Adding a class alias for backwards compatibility with the previous class name.
62+
class_alias(EvaluationMetricsThresholdsToolMatchingSettings::class, 'Google_Service_CustomerEngagementSuite_EvaluationMetricsThresholdsToolMatchingSettings');

src/CustomerEngagementSuite/ExecuteToolRequest.php

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ class ExecuteToolRequest extends \Google\Model
3535
public $tool;
3636
protected $toolsetToolType = ToolsetTool::class;
3737
protected $toolsetToolDataType = '';
38+
/**
39+
* Optional. The variables that are available for the tool execution.
40+
*
41+
* @var array[]
42+
*/
43+
public $variables;
3844

3945
/**
4046
* Optional. The input parameters and values for the tool in JSON object
@@ -87,6 +93,22 @@ public function getToolsetTool()
8793
{
8894
return $this->toolsetTool;
8995
}
96+
/**
97+
* Optional. The variables that are available for the tool execution.
98+
*
99+
* @param array[] $variables
100+
*/
101+
public function setVariables($variables)
102+
{
103+
$this->variables = $variables;
104+
}
105+
/**
106+
* @return array[]
107+
*/
108+
public function getVariables()
109+
{
110+
return $this->variables;
111+
}
90112
}
91113

92114
// Adding a class alias for backwards compatibility with the previous class name.

src/CustomerEngagementSuite/ExecuteToolResponse.php

Lines changed: 28 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
class ExecuteToolResponse extends \Google\Model
2121
{
2222
/**
23-
* Required. The tool execution result in JSON object format. Use "output" key
24-
* to specify tool response and "error" key to specify error details (if any).
25-
* If "output" and "error" keys are not specified, then whole "response" is
23+
* The tool execution result in JSON object format. Use "output" key to
24+
* specify tool response and "error" key to specify error details (if any). If
25+
* "output" and "error" keys are not specified, then whole "response" is
2626
* treated as tool execution result.
2727
*
2828
* @var array[]
@@ -37,11 +37,17 @@ class ExecuteToolResponse extends \Google\Model
3737
public $tool;
3838
protected $toolsetToolType = ToolsetTool::class;
3939
protected $toolsetToolDataType = '';
40+
/**
41+
* The variable values at the end of the tool execution.
42+
*
43+
* @var array[]
44+
*/
45+
public $variables;
4046

4147
/**
42-
* Required. The tool execution result in JSON object format. Use "output" key
43-
* to specify tool response and "error" key to specify error details (if any).
44-
* If "output" and "error" keys are not specified, then whole "response" is
48+
* The tool execution result in JSON object format. Use "output" key to
49+
* specify tool response and "error" key to specify error details (if any). If
50+
* "output" and "error" keys are not specified, then whole "response" is
4551
* treated as tool execution result.
4652
*
4753
* @param array[] $response
@@ -90,6 +96,22 @@ public function getToolsetTool()
9096
{
9197
return $this->toolsetTool;
9298
}
99+
/**
100+
* The variable values at the end of the tool execution.
101+
*
102+
* @param array[] $variables
103+
*/
104+
public function setVariables($variables)
105+
{
106+
$this->variables = $variables;
107+
}
108+
/**
109+
* @return array[]
110+
*/
111+
public function getVariables()
112+
{
113+
return $this->variables;
114+
}
93115
}
94116

95117
// Adding a class alias for backwards compatibility with the previous class name.

src/CustomerEngagementSuite/RetrieveToolSchemaResponse.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ class RetrieveToolSchemaResponse extends \Google\Model
3434
protected $toolsetToolDataType = '';
3535

3636
/**
37-
* Required. The schema of the tool input parameters.
37+
* The schema of the tool input parameters.
3838
*
3939
* @param Schema $inputSchema
4040
*/
@@ -50,7 +50,7 @@ public function getInputSchema()
5050
return $this->inputSchema;
5151
}
5252
/**
53-
* Required. The schema of the tool output parameters.
53+
* The schema of the tool output parameters.
5454
*
5555
* @param Schema $outputSchema
5656
*/

src/CustomerEngagementSuite/RetrieveToolsResponse.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class RetrieveToolsResponse extends \Google\Collection
2424
protected $toolsDataType = 'array';
2525

2626
/**
27-
* Required. The list of tools that are included in the specified toolset.
27+
* The list of tools that are included in the specified toolset.
2828
*
2929
* @param Tool[] $tools
3030
*/

src/CustomerEngagementSuite/Schema.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ class Schema extends \Google\Collection
115115
/**
116116
* Optional. Allows indirect references between schema nodes. The value should
117117
* be a valid reference to a child of the root `defs`. For example, the
118-
* following schema defines a reference to a schema node named "Pet": type:
119-
* object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties:
120-
* name: type: string The value of the "pet" property is a reference to the
121-
* schema node named "Pet". See details in https://json-
118+
* following schema defines a reference to a schema node named "Pet": ```
119+
* type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object
120+
* properties: name: type: string ``` The value of the "pet" property is a
121+
* reference to the schema node named "Pet". See details in https://json-
122122
* schema.org/understanding-json-schema/structuring.
123123
*
124124
* @var string
@@ -368,10 +368,10 @@ public function getProperties()
368368
/**
369369
* Optional. Allows indirect references between schema nodes. The value should
370370
* be a valid reference to a child of the root `defs`. For example, the
371-
* following schema defines a reference to a schema node named "Pet": type:
372-
* object properties: pet: ref: #/defs/Pet defs: Pet: type: object properties:
373-
* name: type: string The value of the "pet" property is a reference to the
374-
* schema node named "Pet". See details in https://json-
371+
* following schema defines a reference to a schema node named "Pet": ```
372+
* type: object properties: pet: ref: #/defs/Pet defs: Pet: type: object
373+
* properties: name: type: string ``` The value of the "pet" property is a
374+
* reference to the schema node named "Pet". See details in https://json-
375375
* schema.org/understanding-json-schema/structuring.
376376
*
377377
* @param string $ref

0 commit comments

Comments
 (0)