Skip to content

Commit fbbbf50

Browse files
Google APIscopybara-github
Google APIs
authored andcommitted
feat: added support for playbook level speech settings
feat: added support for answer feedback & latency metrics in conversation history feat: added DocumentProcessingMode & BoostSpec for data stores PiperOrigin-RevId: 730930887
1 parent fe0fa26 commit fbbbf50

23 files changed

+101
-49
lines changed

google/cloud/dialogflow/cx/v3beta1/BUILD.bazel

-1
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,6 @@ load(
431431

432432
csharp_proto_library(
433433
name = "cx_csharp_proto",
434-
extra_opts = [],
435434
deps = [":cx_proto"],
436435
)
437436

google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import "google/api/field_behavior.proto";
2020
import "google/cloud/dialogflow/cx/v3beta1/gcs.proto";
2121
import "google/protobuf/duration.proto";
2222

23-
option cc_enable_arenas = true;
2423
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2524
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2625
option java_multiple_files = true;
@@ -50,7 +49,7 @@ message AdvancedSettings {
5049
// Timeout before detecting no speech.
5150
google.protobuf.Duration no_speech_timeout = 2;
5251

53-
// Use timeout based endpointing, interpreting endpointer sensitivy as
52+
// Use timeout based endpointing, interpreting endpointer sensitivity as
5453
// seconds of timeout value.
5554
bool use_timeout_based_endpointing = 3;
5655

google/cloud/dialogflow/cx/v3beta1/agent.proto

+14-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import "google/protobuf/empty.proto";
3030
import "google/protobuf/field_mask.proto";
3131
import "google/protobuf/struct.proto";
3232

33-
option cc_enable_arenas = true;
3433
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
3534
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
3635
option java_multiple_files = true;
@@ -433,6 +432,20 @@ message Agent {
433432
// Optional. Settings for custom client certificates.
434433
ClientCertificateSettings client_certificate_settings = 43
435434
[(google.api.field_behavior) = OPTIONAL];
435+
436+
// Optional. Output only. A read only boolean field reflecting Zone Separation
437+
// status of the agent.
438+
optional bool satisfies_pzs = 45 [
439+
(google.api.field_behavior) = OPTIONAL,
440+
(google.api.field_behavior) = OUTPUT_ONLY
441+
];
442+
443+
// Optional. Output only. A read only boolean field reflecting Zone Isolation
444+
// status of the agent.
445+
optional bool satisfies_pzi = 46 [
446+
(google.api.field_behavior) = OPTIONAL,
447+
(google.api.field_behavior) = OUTPUT_ONLY
448+
];
436449
}
437450

438451
// The request message for

google/cloud/dialogflow/cx/v3beta1/audio_config.proto

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import "google/api/field_behavior.proto";
2020
import "google/api/resource.proto";
2121
import "google/protobuf/duration.proto";
2222

23-
option cc_enable_arenas = true;
2423
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2524
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2625
option java_multiple_files = true;
@@ -165,7 +164,7 @@ message SpeechWordInfo {
165164
//
166165
// The client provides this configuration in terms of the durations of those
167166
// two phases. The durations are measured in terms of the audio length from the
168-
// the start of the input audio.
167+
// start of the input audio.
169168
//
170169
// No-speech event is a response with END_OF_UTTERANCE without any transcript
171170
// following up.

google/cloud/dialogflow/cx/v3beta1/bigquery_export.proto

-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ syntax = "proto3";
1616

1717
package google.cloud.dialogflow.cx.v3beta1;
1818

19-
option cc_enable_arenas = true;
2019
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2120
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2221
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/changelog.proto

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
2323
import "google/protobuf/timestamp.proto";
2424

25-
option cc_enable_arenas = true;
2625
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2726
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2827
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/conversation_history.proto

+16
Original file line numberDiff line numberDiff line change
@@ -291,6 +291,15 @@ message Conversation {
291291
float score = 2;
292292
}
293293

294+
// Metrics of each processing step.
295+
message StepMetrics {
296+
// Name of the request processing step.
297+
string name = 1;
298+
299+
// Processing latency of the step.
300+
google.protobuf.Duration latency = 2;
301+
}
302+
294303
// The request of the interaction.
295304
DetectIntentRequest request = 1;
296305

@@ -315,9 +324,16 @@ message Conversation {
315324
// The time that the interaction was created.
316325
google.protobuf.Timestamp create_time = 6;
317326

327+
// Answer feedback for the final response.
328+
AnswerFeedback answer_feedback = 7;
329+
318330
// Missing transition predicted for the interaction. This field is set only
319331
// if the interaction match type was no-match.
320332
MissingTransition missing_transition = 8;
333+
334+
// Metrics associated with different processing steps. Names and number of
335+
// steps depend on the request and can change without a notice.
336+
repeated StepMetrics step_metrics = 9;
321337
}
322338

323339
// Identifier. The identifier of the conversation.

google/cloud/dialogflow/cx/v3beta1/data_store_connection.proto

+19
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,11 @@ message DataStoreConnection {
3737
// `projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}`
3838
// `projects/{project}/locations/{location}/dataStores/{data_store}`
3939
string data_store = 2;
40+
41+
// The document processing mode for the data store connection. Should only be
42+
// set for PUBLIC_WEB and UNSTRUCTURED data stores. If not set it is
43+
// considered as DOCUMENTS, as this is the legacy mode.
44+
DocumentProcessingMode document_processing_mode = 4;
4045
}
4146

4247
// Type of a data store.
@@ -235,3 +240,17 @@ message DataStoreConnectionSignals {
235240
// Optional. Safety check result.
236241
SafetySignals safety_signals = 9 [(google.api.field_behavior) = OPTIONAL];
237242
}
243+
244+
// The document processing mode of the data store.
245+
enum DocumentProcessingMode {
246+
// Not specified. This should be set for STRUCTURED type data stores. Due to
247+
// legacy reasons this is considered as DOCUMENTS for STRUCTURED and
248+
// PUBLIC_WEB data stores.
249+
DOCUMENT_PROCESSING_MODE_UNSPECIFIED = 0;
250+
251+
// Documents are processed as documents.
252+
DOCUMENTS = 1;
253+
254+
// Documents are converted to chunks.
255+
CHUNKS = 2;
256+
}

google/cloud/dialogflow/cx/v3beta1/deployment.proto

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
2323
import "google/protobuf/timestamp.proto";
2424

25-
option cc_enable_arenas = true;
2625
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2726
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2827
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/environment.proto

-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ import "google/protobuf/field_mask.proto";
2828
import "google/protobuf/struct.proto";
2929
import "google/protobuf/timestamp.proto";
3030

31-
option cc_enable_arenas = true;
3231
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
3332
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
3433
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/example.proto

+9
Original file line numberDiff line numberDiff line change
@@ -304,6 +304,9 @@ message ToolUse {
304304
(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Tool" }
305305
];
306306

307+
// Output only. The display name of the tool.
308+
string display_name = 8 [(google.api.field_behavior) = OUTPUT_ONLY];
309+
307310
// Optional. Name of the action to be called during the tool use.
308311
string action = 2 [(google.api.field_behavior) = OPTIONAL];
309312

@@ -328,6 +331,9 @@ message PlaybookInvocation {
328331
}
329332
];
330333

334+
// Output only. The display name of the playbook.
335+
string display_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY];
336+
331337
// Optional. Input of the child playbook invocation.
332338
PlaybookInput playbook_input = 2 [(google.api.field_behavior) = OPTIONAL];
333339

@@ -348,6 +354,9 @@ message FlowInvocation {
348354
(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" }
349355
];
350356

357+
// Output only. The display name of the flow.
358+
string display_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY];
359+
351360
// Optional. A list of input parameters for the flow.
352361
google.protobuf.Struct input_action_parameters = 5
353362
[(google.api.field_behavior) = OPTIONAL];

google/cloud/dialogflow/cx/v3beta1/flow.proto

+1-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ import "google/protobuf/field_mask.proto";
3030
import "google/protobuf/struct.proto";
3131
import "google/protobuf/timestamp.proto";
3232

33-
option cc_enable_arenas = true;
3433
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
3534
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
3635
option java_multiple_files = true;
@@ -299,7 +298,7 @@ message Flow {
299298
// way regardless of the current page. Transition routes defined in the page
300299
// have higher priority than those defined in the flow.
301300
//
302-
// TransitionRoutes are evalauted in the following order:
301+
// TransitionRoutes are evaluated in the following order:
303302
//
304303
// * TransitionRoutes with intent specified.
305304
// * TransitionRoutes with only condition specified.

google/cloud/dialogflow/cx/v3beta1/fulfillment.proto

-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto";
2121
import "google/cloud/dialogflow/cx/v3beta1/response_message.proto";
2222
import "google/protobuf/struct.proto";
2323

24-
option cc_enable_arenas = true;
2524
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2625
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2726
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/gcs.proto

-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,6 @@ package google.cloud.dialogflow.cx.v3beta1;
1818

1919
import "google/api/field_behavior.proto";
2020

21-
option cc_enable_arenas = true;
2221
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2322
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2423
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/generative_settings.proto

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ package google.cloud.dialogflow.cx.v3beta1;
1919
import "google/api/resource.proto";
2020
import "google/cloud/dialogflow/cx/v3beta1/safety_settings.proto";
2121

22-
option cc_enable_arenas = true;
2322
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2423
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2524
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/generator.proto

-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ import "google/cloud/dialogflow/cx/v3beta1/generative_settings.proto";
2424
import "google/protobuf/empty.proto";
2525
import "google/protobuf/field_mask.proto";
2626

27-
option cc_enable_arenas = true;
2827
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2928
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
3029
option java_multiple_files = true;

google/cloud/dialogflow/cx/v3beta1/intent.proto

+1-2
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ import "google/longrunning/operations.proto";
2525
import "google/protobuf/empty.proto";
2626
import "google/protobuf/field_mask.proto";
2727

28-
option cc_enable_arenas = true;
2928
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
3029
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
3130
option java_multiple_files = true;
@@ -165,7 +164,7 @@ message Intent {
165164
}
166165

167166
// Output only. The unique identifier of the training phrase.
168-
string id = 1;
167+
string id = 1 [(google.api.field_behavior) = OUTPUT_ONLY];
169168

170169
// Required. The ordered list of training phrase parts.
171170
// The parts are concatenated in order to form the training phrase.

google/cloud/dialogflow/cx/v3beta1/page.proto

+1-1
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ message Page {
157157
// They route the conversation to another page in the same flow, or another
158158
// flow.
159159
//
160-
// When we are in a certain page, the TransitionRoutes are evalauted in the
160+
// When we are in a certain page, the TransitionRoutes are evaluated in the
161161
// following order:
162162
//
163163
// * TransitionRoutes defined in the page with intent specified.

google/cloud/dialogflow/cx/v3beta1/playbook.proto

+12-2
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@ import "google/api/annotations.proto";
2020
import "google/api/client.proto";
2121
import "google/api/field_behavior.proto";
2222
import "google/api/resource.proto";
23+
import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto";
2324
import "google/cloud/dialogflow/cx/v3beta1/example.proto";
2425
import "google/cloud/dialogflow/cx/v3beta1/generative_settings.proto";
2526
import "google/cloud/dialogflow/cx/v3beta1/parameter_definition.proto";
2627
import "google/protobuf/empty.proto";
2728
import "google/protobuf/field_mask.proto";
2829
import "google/protobuf/timestamp.proto";
2930

30-
option cc_enable_arenas = true;
3131
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
3232
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
3333
option java_multiple_files = true;
@@ -237,6 +237,11 @@ message Playbook {
237237

238238
// Message of the Instruction of the playbook.
239239
message Instruction {
240+
// General guidelines for the playbook. These are unstructured instructions
241+
// that are not directly part of the goal, e.g. "Always be polite". It's
242+
// valid for this text to be long and used instead of steps altogether.
243+
string guidelines = 1;
244+
240245
// Ordered list of step by step execution instructions to accomplish
241246
// target goal.
242247
repeated Step steps = 2;
@@ -251,7 +256,8 @@ message Playbook {
251256
string display_name = 2 [(google.api.field_behavior) = REQUIRED];
252257

253258
// Required. High level description of the goal the playbook intend to
254-
// accomplish.
259+
// accomplish. A goal should be concise since it's visible to other playbooks
260+
// that may reference this playbook.
255261
string goal = 3 [(google.api.field_behavior) = REQUIRED];
256262

257263
// Optional. Defined structured input parameters for this playbook.
@@ -304,6 +310,10 @@ message Playbook {
304310
// Optional. Llm model settings for the playbook.
305311
LlmModelSettings llm_model_settings = 14
306312
[(google.api.field_behavior) = OPTIONAL];
313+
314+
// Optional. Playbook level Settings for speech to text detection.
315+
AdvancedSettings.SpeechSettings speech_settings = 20
316+
[(google.api.field_behavior) = OPTIONAL];
307317
}
308318

309319
// The request message for

google/cloud/dialogflow/cx/v3beta1/response_message.proto

-1
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import "google/api/field_behavior.proto";
2020
import "google/cloud/dialogflow/cx/v3beta1/tool_call.proto";
2121
import "google/protobuf/struct.proto";
2222

23-
option cc_enable_arenas = true;
2423
option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1";
2524
option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb";
2625
option java_multiple_files = true;

0 commit comments

Comments
 (0)