Skip to content

Commit 8808e74

Browse files
1 parent 16c9293 commit 8808e74

6 files changed

Lines changed: 162 additions & 1 deletion

File tree

src/CustomerEngagementSuite.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -456,6 +456,11 @@ public function __construct($clientOrConfig = [], $rootUrl = null)
456456
'location' => 'query',
457457
'type' => 'string',
458458
],
459+
'sources' => [
460+
'location' => 'query',
461+
'type' => 'string',
462+
'repeated' => true,
463+
],
459464
],
460465
],
461466
]

src/CustomerEngagementSuite/Callback.php

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,17 @@ class Callback extends \Google\Model
3232
* @var bool
3333
*/
3434
public $disabled;
35+
/**
36+
* Optional. If enabled, the callback will also be executed on intermediate
37+
* model outputs. This setting only affects after model callback. **ENABLE
38+
* WITH CAUTION**. Typically after model callback only needs to be executed
39+
* after receiving all model responses. Enabling proactive execution may have
40+
* negative implication on the execution cost and latency, and should only be
41+
* enabled in rare situations.
42+
*
43+
* @var bool
44+
*/
45+
public $proactiveExecutionEnabled;
3546
/**
3647
* Required. The python code to execute for the callback.
3748
*
@@ -72,6 +83,27 @@ public function getDisabled()
7283
{
7384
return $this->disabled;
7485
}
86+
/**
87+
* Optional. If enabled, the callback will also be executed on intermediate
88+
* model outputs. This setting only affects after model callback. **ENABLE
89+
* WITH CAUTION**. Typically after model callback only needs to be executed
90+
* after receiving all model responses. Enabling proactive execution may have
91+
* negative implication on the execution cost and latency, and should only be
92+
* enabled in rare situations.
93+
*
94+
* @param bool $proactiveExecutionEnabled
95+
*/
96+
public function setProactiveExecutionEnabled($proactiveExecutionEnabled)
97+
{
98+
$this->proactiveExecutionEnabled = $proactiveExecutionEnabled;
99+
}
100+
/**
101+
* @return bool
102+
*/
103+
public function getProactiveExecutionEnabled()
104+
{
105+
return $this->proactiveExecutionEnabled;
106+
}
75107
/**
76108
* Required. The python code to execute for the callback.
77109
*

src/CustomerEngagementSuite/GoogleSearchTool.php

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ class GoogleSearchTool extends \Google\Collection
5454
* @var string[]
5555
*/
5656
public $preferredDomains;
57+
protected $promptConfigType = GoogleSearchToolPromptConfig::class;
58+
protected $promptConfigDataType = '';
5759

5860
/**
5961
* Optional. Content will be fetched directly from these URLs for context and
@@ -139,6 +141,23 @@ public function getPreferredDomains()
139141
{
140142
return $this->preferredDomains;
141143
}
144+
/**
145+
* Optional. Prompt instructions passed to planner on how the search results
146+
* should be processed for text and voice.
147+
*
148+
* @param GoogleSearchToolPromptConfig $promptConfig
149+
*/
150+
public function setPromptConfig(GoogleSearchToolPromptConfig $promptConfig)
151+
{
152+
$this->promptConfig = $promptConfig;
153+
}
154+
/**
155+
* @return GoogleSearchToolPromptConfig
156+
*/
157+
public function getPromptConfig()
158+
{
159+
return $this->promptConfig;
160+
}
142161
}
143162

144163
// Adding a class alias for backwards compatibility with the previous class name.
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
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 GoogleSearchToolPromptConfig extends \Google\Model
21+
{
22+
/**
23+
* Optional. Defines the prompt used for the system instructions when
24+
* interacting with the agent in chat conversations. If not set, default
25+
* prompt will be used.
26+
*
27+
* @var string
28+
*/
29+
public $textPrompt;
30+
/**
31+
* Optional. Defines the prompt used for the system instructions when
32+
* interacting with the agent in voice conversations. If not set, default
33+
* prompt will be used.
34+
*
35+
* @var string
36+
*/
37+
public $voicePrompt;
38+
39+
/**
40+
* Optional. Defines the prompt used for the system instructions when
41+
* interacting with the agent in chat conversations. If not set, default
42+
* prompt will be used.
43+
*
44+
* @param string $textPrompt
45+
*/
46+
public function setTextPrompt($textPrompt)
47+
{
48+
$this->textPrompt = $textPrompt;
49+
}
50+
/**
51+
* @return string
52+
*/
53+
public function getTextPrompt()
54+
{
55+
return $this->textPrompt;
56+
}
57+
/**
58+
* Optional. Defines the prompt used for the system instructions when
59+
* interacting with the agent in voice conversations. If not set, default
60+
* prompt will be used.
61+
*
62+
* @param string $voicePrompt
63+
*/
64+
public function setVoicePrompt($voicePrompt)
65+
{
66+
$this->voicePrompt = $voicePrompt;
67+
}
68+
/**
69+
* @return string
70+
*/
71+
public function getVoicePrompt()
72+
{
73+
return $this->voicePrompt;
74+
}
75+
}
76+
77+
// Adding a class alias for backwards compatibility with the previous class name.
78+
class_alias(GoogleSearchToolPromptConfig::class, 'Google_Service_CustomerEngagementSuite_GoogleSearchToolPromptConfig');

src/CustomerEngagementSuite/ImportAppRequest.php

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,13 @@ class ImportAppRequest extends \Google\Model
5454
* @var string
5555
*/
5656
public $gcsUri;
57+
/**
58+
* Optional. Flag for overriding the app lock during import. If set to true,
59+
* the import process will ignore the app lock.
60+
*
61+
* @var bool
62+
*/
63+
public $ignoreAppLock;
5764
protected $importOptionsType = ImportAppRequestImportOptions::class;
5865
protected $importOptionsDataType = '';
5966

@@ -132,6 +139,23 @@ public function getGcsUri()
132139
{
133140
return $this->gcsUri;
134141
}
142+
/**
143+
* Optional. Flag for overriding the app lock during import. If set to true,
144+
* the import process will ignore the app lock.
145+
*
146+
* @param bool $ignoreAppLock
147+
*/
148+
public function setIgnoreAppLock($ignoreAppLock)
149+
{
150+
$this->ignoreAppLock = $ignoreAppLock;
151+
}
152+
/**
153+
* @return bool
154+
*/
155+
public function getIgnoreAppLock()
156+
{
157+
return $this->ignoreAppLock;
158+
}
135159
/**
136160
* Optional. Options governing the import process for the app.
137161
*

src/CustomerEngagementSuite/Resource/ProjectsLocationsAppsConversations.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,10 @@ public function get($name, $optParams = [])
102102
* @opt_param string pageToken Optional. The next_page_token value returned from
103103
* a previous list AgentService.ListConversations call.
104104
* @opt_param string source Optional. Indicate the source of the conversation.
105-
* If not set, Source.Live will be applied by default.
105+
* If not set, Source.Live will be applied by default. Will be deprecated in
106+
* favor of `sources` field.
107+
* @opt_param string sources Optional. Indicate the sources of the
108+
* conversations. If not set, all available sources will be applied by default.
106109
* @return ListConversationsResponse
107110
* @throws \Google\Service\Exception
108111
*/

0 commit comments

Comments
 (0)