Skip to content

Commit

Permalink
feat: added dialogflow_assist_answer
Browse files Browse the repository at this point in the history
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
  • Loading branch information
Google APIs authored and Copybara-Service committed Jun 20, 2023
1 parent c709b96 commit f40416d
Show file tree
Hide file tree
Showing 6 changed files with 25 additions and 10 deletions.
7 changes: 5 additions & 2 deletions google/cloud/dialogflow/v2/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ java_gapic_library(
rest_numeric_enums = True,
service_yaml = "dialogflow_v2.yaml",
test_deps = [
":dialogflow_java_grpc",
"//google/cloud/location:location_java_grpc",
":dialogflow_java_grpc",
],
transport = "grpc+rest",
deps = [
Expand Down Expand Up @@ -284,7 +284,9 @@ php_gapic_library(
rest_numeric_enums = True,
service_yaml = "dialogflow_v2.yaml",
transport = "grpc+rest",
deps = [":dialogflow_php_proto"],
deps = [
":dialogflow_php_proto",
],
)

# Open Source Packages
Expand Down Expand Up @@ -394,6 +396,7 @@ load(

csharp_proto_library(
name = "dialogflow_csharp_proto",
extra_opts = [],
deps = [":dialogflow_proto"],
)

Expand Down
4 changes: 2 additions & 2 deletions google/cloud/dialogflow/v2/answer_record.proto
Original file line number Diff line number Diff line change
Expand Up @@ -208,8 +208,8 @@ message AnswerFeedback {

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

// Time when the answer/item was clicked.
Expand Down
2 changes: 1 addition & 1 deletion google/cloud/dialogflow/v2/conversation.proto
Original file line number Diff line number Diff line change
Expand Up @@ -434,7 +434,7 @@ message SuggestConversationSummaryRequest {
// suggestion. By default 500 and at most 1000.
int32 context_size = 4;

// Parameters for a human assist query.
// Parameters for a human assist query. Only used for POC/demo purpose.
AssistQueryParameters assist_query_params = 5;
}

Expand Down
13 changes: 11 additions & 2 deletions google/cloud/dialogflow/v2/conversation_profile.proto
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import "google/api/resource.proto";
import "google/cloud/dialogflow/v2/audio_config.proto";
import "google/cloud/dialogflow/v2/participant.proto";
import "google/longrunning/operations.proto";
import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
Expand Down Expand Up @@ -381,6 +382,13 @@ message AutomatedAgentConfig {
type: "dialogflow.googleapis.com/Agent"
}
];

// Optional. Sets Dialogflow CX session life time.
// By default, a Dialogflow CX session remains active and its data is stored
// for 30 minutes after the last request is sent for the session. This value
// should be no longer than 1 day.
google.protobuf.Duration session_ttl = 3
[(google.api.field_behavior) = OPTIONAL];
}

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

// Determines how recent conversation context is filtered when generating
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,9 @@
},
{
"service": "google.cloud.dialogflow.v2.Versions"
},
{
"service": "google.cloud.dialogflow.v2.EncryptionSpecService"
}
],
"timeout": "60s",
Expand Down
6 changes: 3 additions & 3 deletions google/cloud/dialogflow/v2/document.proto
Original file line number Diff line number Diff line change
Expand Up @@ -370,7 +370,7 @@ message Document {
//
// If a reload fails with internal errors, the system will try to reload the
// document on the next day.
// If a reload fails with non-retriable errors (e.g. PERMISION_DENIED), the
// If a reload fails with non-retriable errors (e.g. PERMISSION_DENIED), the
// system will not try to reload the document anymore. You need to manually
// reload the document successfully by calling `ReloadDocument` and clear the
// errors.
Expand Down Expand Up @@ -500,13 +500,13 @@ message ImportDocumentsRequest {
// Dialogflow supports up to 350 documents in each request. If you try to
// import more, Dialogflow will return an error.
oneof source {
// The Google Cloud Storage location for the documents.
// Optional. The Google Cloud Storage location for the documents.
// The path can include a wildcard.
//
// These URIs may have the forms
// `gs://<bucket-name>/<object-name>`.
// `gs://<bucket-name>/<object-path>/*.<extension>`.
GcsSources gcs_source = 2;
GcsSources gcs_source = 2 [(google.api.field_behavior) = OPTIONAL];
}

// Required. Document template used for importing all the documents.
Expand Down

0 comments on commit f40416d

Please sign in to comment.