Skip to content

Commit 06f7999

Browse files
Google APIscopybara-github
authored andcommitted
feat: added dialogflow_assist_answer
feat: added session_ttl feat: added human_agent_side_config feat: added suggestion_input feat: added suggest_dialogflow_assists_response feat: added suggest_entity_extraction_response PiperOrigin-RevId: 542024928
1 parent f40416d commit 06f7999

8 files changed

Lines changed: 207 additions & 39 deletions

File tree

google/cloud/dialogflow/v2beta1/BUILD.bazel

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -99,8 +99,8 @@ java_gapic_library(
9999
rest_numeric_enums = True,
100100
service_yaml = "dialogflow_v2beta1.yaml",
101101
test_deps = [
102-
":dialogflow_java_grpc",
103102
"//google/cloud/location:location_java_grpc",
103+
":dialogflow_java_grpc",
104104
],
105105
transport = "grpc+rest",
106106
deps = [
@@ -237,15 +237,15 @@ py_gapic_library(
237237
],
238238
)
239239

240-
py_test(
241-
name = "dialogflow_py_gapic_test",
242-
srcs = [
243-
"dialogflow_py_gapic_pytest.py",
244-
"dialogflow_py_gapic_test.py",
245-
],
246-
legacy_create_init = False,
247-
deps = [":dialogflow_py_gapic"],
248-
)
240+
# py_test(
241+
# name = "dialogflow_py_gapic_test",
242+
# srcs = [
243+
# "dialogflow_py_gapic_pytest.py",
244+
# "dialogflow_py_gapic_test.py",
245+
# ],
246+
# legacy_create_init = False,
247+
# deps = [":dialogflow_py_gapic"],
248+
# )
249249

250250
# Open Source Packages
251251
py_gapic_assembly_pkg(
@@ -278,7 +278,9 @@ php_gapic_library(
278278
rest_numeric_enums = True,
279279
service_yaml = "dialogflow_v2beta1.yaml",
280280
transport = "grpc+rest",
281-
deps = [":dialogflow_php_proto"],
281+
deps = [
282+
":dialogflow_php_proto",
283+
],
282284
)
283285

284286
# Open Source Packages
@@ -388,6 +390,7 @@ load(
388390

389391
csharp_proto_library(
390392
name = "dialogflow_csharp_proto",
393+
extra_opts = [],
391394
deps = [":dialogflow_proto"],
392395
)
393396

google/cloud/dialogflow/v2beta1/answer_record.proto

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,10 @@ message AgentAssistantRecord {
144144

145145
// Output only. The FAQ answer.
146146
FaqAnswer faq_answer = 6 [(google.api.field_behavior) = OUTPUT_ONLY];
147+
148+
// Output only. The Dialogflow assist answer.
149+
DialogflowAssistAnswer dialogflow_assist_answer = 7
150+
[(google.api.field_behavior) = OUTPUT_ONLY];
147151
}
148152
}
149153

google/cloud/dialogflow/v2beta1/conversation.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ message BatchCreateMessagesRequest {
408408
}
409409
];
410410

411-
// Required. A maximum of 1000 Messages can be created in a batch.
411+
// Required. A maximum of 300 messages can be created in a batch.
412412
// [CreateMessageRequest.message.send_time][] is required. All created
413413
// messages will have identical
414414
// [Message.create_time][google.cloud.dialogflow.v2beta1.Message.create_time].
@@ -494,7 +494,7 @@ message SuggestConversationSummaryRequest {
494494
// suggestion. By default 500 and at most 1000.
495495
int32 context_size = 4;
496496

497-
// Parameters for a human assist query.
497+
// Parameters for a human assist query. Only used for POC/demo purpose.
498498
AssistQueryParameters assist_query_params = 5;
499499
}
500500

google/cloud/dialogflow/v2beta1/conversation_profile.proto

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ import "google/api/resource.proto";
2323
import "google/cloud/dialogflow/v2beta1/audio_config.proto";
2424
import "google/cloud/dialogflow/v2beta1/participant.proto";
2525
import "google/longrunning/operations.proto";
26+
import "google/protobuf/duration.proto";
2627
import "google/protobuf/empty.proto";
2728
import "google/protobuf/field_mask.proto";
2829
import "google/protobuf/timestamp.proto";
@@ -294,6 +295,13 @@ message AutomatedAgentConfig {
294295
type: "dialogflow.googleapis.com/Agent"
295296
}
296297
];
298+
299+
// Optional. Sets Dialogflow CX session life time.
300+
// By default, a Dialogflow CX session remains active and its data is stored
301+
// for 30 minutes after the last request is sent for the session. This value
302+
// should be no longer than 1 day.
303+
google.protobuf.Duration session_ttl = 3
304+
[(google.api.field_behavior) = OPTIONAL];
297305
}
298306

299307
// Defines the Human Agent Assistant to connect to a conversation.
@@ -392,8 +400,22 @@ message HumanAgentAssistantConfig {
392400
//
393401
// Supported feature: DIALOGFLOW_ASSIST.
394402
message DialogflowQuerySource {
403+
// The configuration used for human agent side Dialogflow assist
404+
// suggestion.
405+
message HumanAgentSideConfig {
406+
// Optional. The name of a dialogflow virtual agent used for intent
407+
// detection and suggestion triggered by human agent.
408+
// Format: `projects/<Project ID>/locations/<Location ID>/agent`.
409+
string agent = 1 [
410+
(google.api.field_behavior) = OPTIONAL,
411+
(google.api.resource_reference) = {
412+
type: "dialogflow.googleapis.com/Agent"
413+
}
414+
];
415+
}
416+
395417
// Required. The name of a dialogflow virtual agent used for end user side
396-
// intent detection and suggestion. Format: `projects/<Project Number /
418+
// intent detection and suggestion. Format: `projects/<Project
397419
// ID>/locations/<Location ID>/agent`. When multiple agents are allowed in
398420
// the same Dialogflow project.
399421
string agent = 1 [
@@ -402,6 +424,9 @@ message HumanAgentAssistantConfig {
402424
type: "dialogflow.googleapis.com/Agent"
403425
}
404426
];
427+
428+
// The Dialogflow assist configuration for human agent.
429+
HumanAgentSideConfig human_agent_side_config = 3;
405430
}
406431

407432
// Settings that determine how to filter recent conversation context when
@@ -454,7 +479,8 @@ message HumanAgentAssistantConfig {
454479
// If this field is not set, it is default to 0.0, which means that all
455480
// suggestions are returned.
456481
//
457-
// Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
482+
// Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE,
483+
// KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
458484
float confidence_threshold = 5;
459485

460486
// Determines how recent conversation context is filtered when generating

google/cloud/dialogflow/v2beta1/dialogflow_grpc_service_config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,9 @@
137137
},
138138
{
139139
"service": "google.cloud.dialogflow.v2beta1.Tiers"
140+
},
141+
{
142+
"service": "google.cloud.dialogflow.v2beta1.EncryptionSpecService"
140143
}
141144
],
142145
"timeout": "60s",

google/cloud/dialogflow/v2beta1/document.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -508,13 +508,13 @@ message ImportDocumentsRequest {
508508
// Dialogflow supports up to 350 documents in each request. If you try to
509509
// import more, Dialogflow will return an error.
510510
oneof source {
511-
// The Google Cloud Storage location for the documents.
511+
// Optional. The Google Cloud Storage location for the documents.
512512
// The path can include a wildcard.
513513
//
514514
// These URIs may have the forms
515515
// `gs://<bucket-name>/<object-name>`.
516516
// `gs://<bucket-name>/<object-path>/*.<extension>`.
517-
GcsSources gcs_source = 2;
517+
GcsSources gcs_source = 2 [(google.api.field_behavior) = OPTIONAL];
518518
}
519519

520520
// Required. Document template used for importing all the documents.

google/cloud/dialogflow/v2beta1/environment.proto

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -168,9 +168,9 @@ message Environment {
168168

169169
// Output only. The unique identifier of this agent environment.
170170
// Supported formats:
171-
// - `projects/<Project Number / ID>/agent/environments/<Environment ID>`
172-
// - `projects/<Project Number / ID>/locations/<Location
173-
// ID>/agent/environments/<Environment ID>`
171+
// - `projects/<Project ID>/agent/environments/<Environment ID>`
172+
// - `projects/<Project ID>/locations/<Location
173+
// ID>/agent/environments/<Environment ID>`
174174
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
175175

176176
// Optional. The developer-provided description for this environment.
@@ -181,7 +181,7 @@ message Environment {
181181
// Supported formats:
182182
// - `projects/<Project ID>/agent/versions/<Version ID>`
183183
// - `projects/<Project ID>/locations/<Location ID>/agent/versions/<Version
184-
// ID>`
184+
// ID>`
185185
string agent_version = 3 [
186186
(google.api.field_behavior) = OPTIONAL,
187187
(google.api.resource_reference) = {
@@ -235,8 +235,8 @@ message TextToSpeechSettings {
235235
message ListEnvironmentsRequest {
236236
// Required. The agent to list all environments from.
237237
// Format:
238-
// - `projects/<Project Number / ID>/agent`
239-
// - `projects/<Project Number / ID>/locations/<Location ID>/agent`
238+
// - `projects/<Project ID>/agent`
239+
// - `projects/<Project ID>/locations/<Location ID>/agent`
240240
string parent = 1 [
241241
(google.api.field_behavior) = REQUIRED,
242242
(google.api.resource_reference) = {
@@ -269,8 +269,8 @@ message ListEnvironmentsResponse {
269269
message GetEnvironmentRequest {
270270
// Required. The name of the environment.
271271
// Supported formats:
272-
// - `projects/<Project Number / ID>/agent/environments/<Environment ID>`
273-
// - `projects/<Project Number / ID>/locations/<Location
272+
// - `projects/<Project ID>/agent/environments/<Environment ID>`
273+
// - `projects/<Project ID>/locations/<Location
274274
// ID>/agent/environments/<Environment ID>`
275275
string name = 1 [
276276
(google.api.field_behavior) = REQUIRED,
@@ -285,8 +285,8 @@ message GetEnvironmentRequest {
285285
message CreateEnvironmentRequest {
286286
// Required. The agent to create an environment for.
287287
// Supported formats:
288-
// - `projects/<Project Number / ID>/agent`
289-
// - `projects/<Project Number / ID>/locations/<Location ID>/agent`
288+
// - `projects/<Project ID>/agent`
289+
// - `projects/<Project ID>/locations/<Location ID>/agent`
290290
string parent = 1 [
291291
(google.api.field_behavior) = REQUIRED,
292292
(google.api.resource_reference) = {
@@ -324,8 +324,8 @@ message UpdateEnvironmentRequest {
324324
message DeleteEnvironmentRequest {
325325
// Required. The name of the environment to delete.
326326
// / Format:
327-
// - `projects/<Project Number / ID>/agent/environments/<Environment ID>`
328-
// - `projects/<Project Number / ID>/locations/<Location
327+
// - `projects/<Project ID>/agent/environments/<Environment ID>`
328+
// - `projects/<Project ID>/locations/<Location
329329
// ID>/agent/environments/<Environment ID>`
330330
string name = 1 [
331331
(google.api.field_behavior) = REQUIRED,
@@ -340,8 +340,8 @@ message DeleteEnvironmentRequest {
340340
message GetEnvironmentHistoryRequest {
341341
// Required. The name of the environment to retrieve history for.
342342
// Supported formats:
343-
// - `projects/<Project Number / ID>/agent/environments/<Environment ID>`
344-
// - `projects/<Project Number / ID>/locations/<Location
343+
// - `projects/<Project ID>/agent/environments/<Environment ID>`
344+
// - `projects/<Project ID>/locations/<Location
345345
// ID>/agent/environments/<Environment ID>`
346346
string parent = 1 [
347347
(google.api.field_behavior) = REQUIRED,
@@ -375,8 +375,8 @@ message EnvironmentHistory {
375375

376376
// Output only. The name of the environment this history is for.
377377
// Supported formats:
378-
// - `projects/<Project Number / ID>/agent/environments/<Environment ID>`
379-
// - `projects/<Project Number / ID>/locations/<Location
378+
// - `projects/<Project ID>/agent/environments/<Environment ID>`
379+
// - `projects/<Project ID>/locations/<Location
380380
// ID>/agent/environments/<Environment ID>`
381381
string parent = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
382382

0 commit comments

Comments
 (0)