Skip to content

Commit f40416d

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: 542021587
1 parent c709b96 commit f40416d

6 files changed

Lines changed: 25 additions & 10 deletions

File tree

google/cloud/dialogflow/v2/BUILD.bazel

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,8 +101,8 @@ java_gapic_library(
101101
rest_numeric_enums = True,
102102
service_yaml = "dialogflow_v2.yaml",
103103
test_deps = [
104-
":dialogflow_java_grpc",
105104
"//google/cloud/location:location_java_grpc",
105+
":dialogflow_java_grpc",
106106
],
107107
transport = "grpc+rest",
108108
deps = [
@@ -284,7 +284,9 @@ php_gapic_library(
284284
rest_numeric_enums = True,
285285
service_yaml = "dialogflow_v2.yaml",
286286
transport = "grpc+rest",
287-
deps = [":dialogflow_php_proto"],
287+
deps = [
288+
":dialogflow_php_proto",
289+
],
288290
)
289291

290292
# Open Source Packages
@@ -394,6 +396,7 @@ load(
394396

395397
csharp_proto_library(
396398
name = "dialogflow_csharp_proto",
399+
extra_opts = [],
397400
deps = [":dialogflow_proto"],
398401
)
399402

google/cloud/dialogflow/v2/answer_record.proto

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -208,8 +208,8 @@ message AnswerFeedback {
208208

209209
// Indicates whether the answer/item was clicked by the human agent
210210
// or not. Default to false.
211-
// For knowledge search, the answer record is considered to be clicked if the
212-
// answer was copied or any URI was clicked.
211+
// For knowledge search and knowledge assist, the answer record is considered
212+
// to be clicked if the answer was copied or any URI was clicked.
213213
bool clicked = 3;
214214

215215
// Time when the answer/item was clicked.

google/cloud/dialogflow/v2/conversation.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@ message SuggestConversationSummaryRequest {
434434
// suggestion. By default 500 and at most 1000.
435435
int32 context_size = 4;
436436

437-
// Parameters for a human assist query.
437+
// Parameters for a human assist query. Only used for POC/demo purpose.
438438
AssistQueryParameters assist_query_params = 5;
439439
}
440440

google/cloud/dialogflow/v2/conversation_profile.proto

Lines changed: 11 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/v2/audio_config.proto";
2424
import "google/cloud/dialogflow/v2/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";
@@ -381,6 +382,13 @@ message AutomatedAgentConfig {
381382
type: "dialogflow.googleapis.com/Agent"
382383
}
383384
];
385+
386+
// Optional. Sets Dialogflow CX session life time.
387+
// By default, a Dialogflow CX session remains active and its data is stored
388+
// for 30 minutes after the last request is sent for the session. This value
389+
// should be no longer than 1 day.
390+
google.protobuf.Duration session_ttl = 3
391+
[(google.api.field_behavior) = OPTIONAL];
384392
}
385393

386394
// Defines the Human Agent Assist to connect to a conversation.
@@ -479,7 +487,7 @@ message HumanAgentAssistantConfig {
479487
// Supported feature: DIALOGFLOW_ASSIST.
480488
message DialogflowQuerySource {
481489
// Required. The name of a Dialogflow virtual agent used for end user side
482-
// intent detection and suggestion. Format: `projects/<Project Number/
490+
// intent detection and suggestion. Format: `projects/<Project
483491
// ID>/locations/<Location ID>/agent`. When multiple agents are allowed in
484492
// the same Dialogflow project.
485493
string agent = 1 [
@@ -540,7 +548,8 @@ message HumanAgentAssistantConfig {
540548
// If this field is not set, it defaults to 0.0, which means that all
541549
// suggestions are returned.
542550
//
543-
// Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE.
551+
// Supported features: ARTICLE_SUGGESTION, FAQ, SMART_REPLY, SMART_COMPOSE,
552+
// KNOWLEDGE_SEARCH, KNOWLEDGE_ASSIST, ENTITY_EXTRACTION.
544553
float confidence_threshold = 5;
545554

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

google/cloud/dialogflow/v2/dialogflow_grpc_service_config.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
},
6565
{
6666
"service": "google.cloud.dialogflow.v2.Versions"
67+
},
68+
{
69+
"service": "google.cloud.dialogflow.v2.EncryptionSpecService"
6770
}
6871
],
6972
"timeout": "60s",

google/cloud/dialogflow/v2/document.proto

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -370,7 +370,7 @@ message Document {
370370
//
371371
// If a reload fails with internal errors, the system will try to reload the
372372
// document on the next day.
373-
// If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the
373+
// If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the
374374
// system will not try to reload the document anymore. You need to manually
375375
// reload the document successfully by calling `ReloadDocument` and clear the
376376
// errors.
@@ -500,13 +500,13 @@ message ImportDocumentsRequest {
500500
// Dialogflow supports up to 350 documents in each request. If you try to
501501
// import more, Dialogflow will return an error.
502502
oneof source {
503-
// The Google Cloud Storage location for the documents.
503+
// Optional. The Google Cloud Storage location for the documents.
504504
// The path can include a wildcard.
505505
//
506506
// These URIs may have the forms
507507
// `gs://<bucket-name>/<object-name>`.
508508
// `gs://<bucket-name>/<object-path>/*.<extension>`.
509-
GcsSources gcs_source = 2;
509+
GcsSources gcs_source = 2 [(google.api.field_behavior) = OPTIONAL];
510510
}
511511

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

0 commit comments

Comments
 (0)