Skip to content

Commit 29bb98c

Browse files
Google APIscopybara-github
authored andcommitted
feat: support document metadata filter in article suggestion and smart reply model in human agent assistant
PiperOrigin-RevId: 409190373
1 parent c522fe8 commit 29bb98c

3 files changed

Lines changed: 153 additions & 70 deletions

File tree

google/cloud/dialogflow/v2/audio_config.proto

Lines changed: 30 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,36 @@ option java_outer_classname = "AudioConfigProto";
3030
option java_package = "com.google.cloud.dialogflow.v2";
3131
option objc_class_prefix = "DF";
3232

33+
// Hints for the speech recognizer to help with recognition in a specific
34+
// conversation state.
35+
message SpeechContext {
36+
// Optional. A list of strings containing words and phrases that the speech
37+
// recognizer should recognize with higher likelihood.
38+
//
39+
// This list can be used to:
40+
//
41+
// * improve accuracy for words and phrases you expect the user to say,
42+
// e.g. typical commands for your Dialogflow agent
43+
// * add additional words to the speech recognizer vocabulary
44+
// * ...
45+
//
46+
// See the [Cloud Speech
47+
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
48+
// limits.
49+
repeated string phrases = 1;
50+
51+
// Optional. Boost for this context compared to other contexts:
52+
//
53+
// * If the boost is positive, Dialogflow will increase the probability that
54+
// the phrases in this context are recognized over similar sounding phrases.
55+
// * If the boost is unspecified or non-positive, Dialogflow will not apply
56+
// any boost.
57+
//
58+
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
59+
// find a value that fits your use case with binary search.
60+
float boost = 2;
61+
}
62+
3363
// Audio encoding of the audio content sent in the conversational query request.
3464
// Refer to the
3565
// [Cloud Speech API
@@ -79,36 +109,6 @@ enum AudioEncoding {
79109
AUDIO_ENCODING_SPEEX_WITH_HEADER_BYTE = 7;
80110
}
81111

82-
// Hints for the speech recognizer to help with recognition in a specific
83-
// conversation state.
84-
message SpeechContext {
85-
// Optional. A list of strings containing words and phrases that the speech
86-
// recognizer should recognize with higher likelihood.
87-
//
88-
// This list can be used to:
89-
//
90-
// * improve accuracy for words and phrases you expect the user to say,
91-
// e.g. typical commands for your Dialogflow agent
92-
// * add additional words to the speech recognizer vocabulary
93-
// * ...
94-
//
95-
// See the [Cloud Speech
96-
// documentation](https://cloud.google.com/speech-to-text/quotas) for usage
97-
// limits.
98-
repeated string phrases = 1;
99-
100-
// Optional. Boost for this context compared to other contexts:
101-
//
102-
// * If the boost is positive, Dialogflow will increase the probability that
103-
// the phrases in this context are recognized over similar sounding phrases.
104-
// * If the boost is unspecified or non-positive, Dialogflow will not apply
105-
// any boost.
106-
//
107-
// Dialogflow recommends that you use boosts in the range (0, 20] and that you
108-
// find a value that fits your use case with binary search.
109-
float boost = 2;
110-
}
111-
112112
// Information for a word recognized by the speech recognizer.
113113
message SpeechWordInfo {
114114
// The word this info is for.

google/cloud/dialogflow/v2/conversation_profile.proto

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -606,6 +606,9 @@ message SuggestionFeature {
606606

607607
// Run FAQ model.
608608
FAQ = 2;
609+
610+
// Run smart reply model.
611+
SMART_REPLY = 3;
609612
}
610613

611614
// Type of Human Agent Assistant API feature to request.

0 commit comments

Comments
 (0)