Skip to content

Commit 4b16c60

Browse files
Google APIscopybara-github
authored andcommitted
feat: added fallback option when restoring an agent
docs: clarified experiment length PiperOrigin-RevId: 362090097
1 parent 68fdb1b commit 4b16c60

4 files changed

Lines changed: 47 additions & 26 deletions

File tree

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

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,21 @@ message ExportAgentResponse {
322322

323323
// The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].
324324
message RestoreAgentRequest {
325+
// Restore option.
326+
enum RestoreOption {
327+
// Unspecified. Treated as KEEP.
328+
RESTORE_OPTION_UNSPECIFIED = 0;
329+
330+
// Always respect the settings from the exported agent file. It may cause
331+
// a restoration failure if some settings (e.g. model type) are not
332+
// supported in the target agent.
333+
KEEP = 1;
334+
335+
// Fallback to default settings if some settings are not supported in the
336+
// target agent.
337+
FALLBACK = 2;
338+
}
339+
325340
// Required. The name of the agent to restore into.
326341
// Format: `projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>`.
327342
string name = 1 [
@@ -341,6 +356,9 @@ message RestoreAgentRequest {
341356
// Uncompressed raw byte content for agent.
342357
bytes agent_content = 3;
343358
}
359+
360+
// Agent restore mode. If not specified, `KEEP` is assumed.
361+
RestoreOption restore_option = 5;
344362
}
345363

346364
// The request message for [Agents.ValidateAgent][google.cloud.dialogflow.cx.v3.Agents.ValidateAgent].

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

Lines changed: 25 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,31 @@ option java_outer_classname = "AudioConfigProto";
2929
option java_package = "com.google.cloud.dialogflow.cx.v3";
3030
option objc_class_prefix = "DF";
3131

32+
// Information for a word recognized by the speech recognizer.
33+
message SpeechWordInfo {
34+
// The word this info is for.
35+
string word = 3;
36+
37+
// Time offset relative to the beginning of the audio that corresponds to the
38+
// start of the spoken word. This is an experimental feature and the accuracy
39+
// of the time offset can vary.
40+
google.protobuf.Duration start_offset = 1;
41+
42+
// Time offset relative to the beginning of the audio that corresponds to the
43+
// end of the spoken word. This is an experimental feature and the accuracy of
44+
// the time offset can vary.
45+
google.protobuf.Duration end_offset = 2;
46+
47+
// The Speech confidence between 0.0 and 1.0 for this word. A higher number
48+
// indicates an estimated greater likelihood that the recognized word is
49+
// correct. The default of 0.0 is a sentinel value indicating that confidence
50+
// was not set.
51+
//
52+
// This field is not guaranteed to be fully stable over time for the same
53+
// audio input. Users should also not rely on it to always be provided.
54+
float confidence = 4;
55+
}
56+
3257
// Audio encoding of the audio content sent in the conversational query request.
3358
// Refer to the
3459
// [Cloud Speech API
@@ -78,31 +103,6 @@ enum AudioEncoding {
78103
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
79104
}
80105

81-
// Information for a word recognized by the speech recognizer.
82-
message SpeechWordInfo {
83-
// The word this info is for.
84-
string word = 3;
85-
86-
// Time offset relative to the beginning of the audio that corresponds to the
87-
// start of the spoken word. This is an experimental feature and the accuracy
88-
// of the time offset can vary.
89-
google.protobuf.Duration start_offset = 1;
90-
91-
// Time offset relative to the beginning of the audio that corresponds to the
92-
// end of the spoken word. This is an experimental feature and the accuracy of
93-
// the time offset can vary.
94-
google.protobuf.Duration end_offset = 2;
95-
96-
// The Speech confidence between 0.0 and 1.0 for this word. A higher number
97-
// indicates an estimated greater likelihood that the recognized word is
98-
// correct. The default of 0.0 is a sentinel value indicating that confidence
99-
// was not set.
100-
//
101-
// This field is not guaranteed to be fully stable over time for the same
102-
// audio input. Users should also not rely on it to always be provided.
103-
float confidence = 4;
104-
}
105-
106106
// Instructs the speech recognizer on how to process the audio content.
107107
message InputAudioConfig {
108108
// Required. Audio encoding of the audio content to process.

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ 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/v3/test_case.proto";
2324
import "google/longrunning/operations.proto";
2425
import "google/protobuf/empty.proto";
2526
import "google/protobuf/field_mask.proto";

google/cloud/dialogflow/cx/v3/experiment.proto

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,9 @@ message Experiment {
284284
// Last update time of this experiment.
285285
google.protobuf.Timestamp last_update_time = 10;
286286

287-
// Maximum number of days to run the experiment.
287+
// Maximum number of days to run the experiment/rollout. If auto-rollout is
288+
// not enabled, default value and maximum will be 30 days. If auto-rollout is
289+
// enabled, default value and maximum will be 6 days.
288290
google.protobuf.Duration experiment_length = 11;
289291

290292
// The history of updates to the experiment variants.

0 commit comments

Comments
 (0)