Skip to content

Commit ed81d4e

Browse files
Google APIscopybara-github
authored andcommitted
feat: Public preview the Dialogflow LLM based agent
docs: A comment for field `start_flow` in message `.google.cloud.dialogflow.cx.v3beta1.Agent` is changed docs: A comment for enum value `USE_BEST_AVAILABLE` in enum `SpeechModelVariant` is changed docs: A comment for enum value `USE_ENHANCED` in enum `SpeechModelVariant` is changed docs: A comment for field `model` in message `.google.cloud.dialogflow.cx.v3beta1.InputAudioConfig` is changed docs: A comment for enum value `END_OF_SINGLE_UTTERANCE` in enum `MessageType` is changed docs: A comment for field `session_ttl` in message `.google.cloud.dialogflow.cx.v3beta1.QueryParameters` is changed docs: A comment for message `QueryInput` is changed docs: A comment for field `text` in message `.google.cloud.dialogflow.cx.v3beta1.TextInput` is changed PiperOrigin-RevId: 605368061
1 parent 63d2a60 commit ed81d4e

16 files changed

Lines changed: 1816 additions & 41 deletions

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

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ proto_library(
2929
"deployment.proto",
3030
"entity_type.proto",
3131
"environment.proto",
32+
"example.proto",
3233
"experiment.proto",
3334
"flow.proto",
3435
"fulfillment.proto",
@@ -39,12 +40,16 @@ proto_library(
3940
"inline.proto",
4041
"intent.proto",
4142
"page.proto",
43+
"parameter_definition.proto",
44+
"playbook.proto",
4245
"response_message.proto",
4346
"safety_settings.proto",
4447
"security_settings.proto",
4548
"session.proto",
4649
"session_entity_type.proto",
4750
"test_case.proto",
51+
"tool.proto",
52+
"tool_call.proto",
4853
"transition_route_group.proto",
4954
"validation_message.proto",
5055
"version.proto",
@@ -106,8 +111,8 @@ java_gapic_library(
106111
rest_numeric_enums = True,
107112
service_yaml = "dialogflow_v3beta1.yaml",
108113
test_deps = [
109-
"//google/cloud/location:location_java_grpc",
110114
":cx_java_grpc",
115+
"//google/cloud/location:location_java_grpc",
111116
],
112117
transport = "grpc+rest",
113118
deps = [
@@ -130,6 +135,8 @@ java_gapic_test(
130135
"com.google.cloud.dialogflow.cx.v3beta1.EntityTypesClientTest",
131136
"com.google.cloud.dialogflow.cx.v3beta1.EnvironmentsClientHttpJsonTest",
132137
"com.google.cloud.dialogflow.cx.v3beta1.EnvironmentsClientTest",
138+
"com.google.cloud.dialogflow.cx.v3beta1.ExamplesClientHttpJsonTest",
139+
"com.google.cloud.dialogflow.cx.v3beta1.ExamplesClientTest",
133140
"com.google.cloud.dialogflow.cx.v3beta1.ExperimentsClientHttpJsonTest",
134141
"com.google.cloud.dialogflow.cx.v3beta1.ExperimentsClientTest",
135142
"com.google.cloud.dialogflow.cx.v3beta1.FlowsClientHttpJsonTest",
@@ -140,6 +147,8 @@ java_gapic_test(
140147
"com.google.cloud.dialogflow.cx.v3beta1.IntentsClientTest",
141148
"com.google.cloud.dialogflow.cx.v3beta1.PagesClientHttpJsonTest",
142149
"com.google.cloud.dialogflow.cx.v3beta1.PagesClientTest",
150+
"com.google.cloud.dialogflow.cx.v3beta1.PlaybooksClientHttpJsonTest",
151+
"com.google.cloud.dialogflow.cx.v3beta1.PlaybooksClientTest",
143152
"com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceClientHttpJsonTest",
144153
"com.google.cloud.dialogflow.cx.v3beta1.SecuritySettingsServiceClientTest",
145154
"com.google.cloud.dialogflow.cx.v3beta1.SessionEntityTypesClientHttpJsonTest",
@@ -148,6 +157,8 @@ java_gapic_test(
148157
"com.google.cloud.dialogflow.cx.v3beta1.SessionsClientTest",
149158
"com.google.cloud.dialogflow.cx.v3beta1.TestCasesClientHttpJsonTest",
150159
"com.google.cloud.dialogflow.cx.v3beta1.TestCasesClientTest",
160+
"com.google.cloud.dialogflow.cx.v3beta1.ToolsClientHttpJsonTest",
161+
"com.google.cloud.dialogflow.cx.v3beta1.ToolsClientTest",
151162
"com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsClientHttpJsonTest",
152163
"com.google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroupsClientTest",
153164
"com.google.cloud.dialogflow.cx.v3beta1.VersionsClientHttpJsonTest",

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

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -300,15 +300,34 @@ message Agent {
300300
// Speech recognition related settings.
301301
SpeechToTextSettings speech_to_text_settings = 13;
302302

303-
// Immutable. Name of the start flow in this agent. A start flow will be
303+
// Optional. Name of the start flow in this agent. A start flow will be
304304
// automatically created when the agent is created, and can only be deleted by
305305
// deleting the agent. Format: `projects/<Project ID>/locations/<Location
306-
// ID>/agents/<Agent ID>/flows/<Flow ID>`.
306+
// ID>/agents/<Agent ID>/flows/<Flow ID>`. Currently only the default start
307+
// flow with id "00000000-0000-0000-0000-000000000000" is allowed.
308+
//
309+
// Only one of `start_flow` or `start_playbook` should be set, but not both.
307310
string start_flow = 16 [
308-
(google.api.field_behavior) = IMMUTABLE,
311+
(google.api.field_behavior) = OPTIONAL,
309312
(google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" }
310313
];
311314

315+
// Optional. Name of the start playbook in this agent. A start playbook will
316+
// be automatically created when the agent is created, and can only be deleted
317+
// by deleting the agent.
318+
// Format: `projects/<Project ID>/locations/<Location
319+
// ID>/agents/<Agent ID>/playbooks/<Playbook ID>`. Currently only the
320+
// default playbook with id
321+
// "00000000-0000-0000-0000-000000000000" is allowed.
322+
//
323+
// Only one of `start_flow` or `start_playbook` should be set, but not both.
324+
string start_playbook = 39 [
325+
(google.api.field_behavior) = OPTIONAL,
326+
(google.api.resource_reference) = {
327+
type: "dialogflow.googleapis.com/Playbook"
328+
}
329+
];
330+
312331
// Name of the
313332
// [SecuritySettings][google.cloud.dialogflow.cx.v3beta1.SecuritySettings]
314333
// reference for the agent. Format: `projects/<Project ID>/locations/<Location

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

Lines changed: 10 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -97,10 +97,6 @@ enum SpeechModelVariant {
9797

9898
// Use the best available variant of the [Speech
9999
// model][InputAudioConfig.model] that the caller is eligible for.
100-
//
101-
// Please see the [Dialogflow
102-
// docs](https://cloud.google.com/dialogflow/docs/data-logging) for
103-
// how to make your project eligible for enhanced models.
104100
USE_BEST_AVAILABLE = 1;
105101

106102
// Use standard model variant even if an enhanced model is available. See the
@@ -118,11 +114,6 @@ enum SpeechModelVariant {
118114
// The [Cloud Speech
119115
// documentation](https://cloud.google.com/speech-to-text/docs/enhanced-models)
120116
// describes which models have enhanced variants.
121-
//
122-
// * If the API caller isn't eligible for enhanced models, Dialogflow returns
123-
// an error. Please see the [Dialogflow
124-
// docs](https://cloud.google.com/dialogflow/docs/data-logging)
125-
// for how to make your project eligible.
126117
USE_ENHANCED = 3;
127118
}
128119

@@ -212,28 +203,10 @@ message InputAudioConfig {
212203
// for more details.
213204
repeated string phrase_hints = 4;
214205

215-
// Optional. Which Speech model to select for the given request. Select the
216-
// model best suited to your domain to get best results. If a model is not
217-
// explicitly specified, then Dialogflow auto-selects a model based on other
218-
// parameters in the InputAudioConfig and Agent settings.
219-
// If enhanced speech model is enabled for the agent and an enhanced
220-
// version of the specified model for the language does not exist, then the
221-
// speech is recognized using the standard version of the specified model.
222-
// Refer to
223-
// [Cloud Speech API
224-
// documentation](https://cloud.google.com/speech-to-text/docs/basics#select-model)
225-
// for more details.
226-
// If you specify a model, the following models typically have the best
227-
// performance:
228-
//
229-
// - phone_call (best for Agent Assist and telephony)
230-
// - latest_short (best for Dialogflow non-telephony)
231-
// - command_and_search
232-
//
233-
// Leave this field unspecified to use
234-
// [Agent Speech
235-
// settings](https://cloud.google.com/dialogflow/cx/docs/concept/agent#settings-speech)
236-
// for model selection.
206+
// Optional. Which Speech model to select for the given request.
207+
// For more information, see
208+
// [Speech
209+
// models](https://cloud.google.com/dialogflow/cx/docs/concept/speech-models).
237210
string model = 7;
238211

239212
// Optional. Which variant of the [Speech
@@ -252,6 +225,12 @@ message InputAudioConfig {
252225

253226
// Configuration of barge-in behavior during the streaming of input audio.
254227
BargeInConfig barge_in_config = 15;
228+
229+
// If `true`, the request will opt out for STT conformer model migration.
230+
// This field will be deprecated once force migration takes place in June
231+
// 2024. Please refer to [Dialogflow CX Speech model
232+
// migration](https://cloud.google.com/dialogflow/cx/docs/concept/speech-model-migration).
233+
bool opt_out_conformer_model_migration = 26;
255234
}
256235

257236
// Gender of the voice as described in

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

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,4 +154,7 @@ message Changelog {
154154

155155
// The timestamp of the change.
156156
google.protobuf.Timestamp create_time = 4;
157+
158+
// The affected language code of the change.
159+
string language_code = 14;
157160
}

google/cloud/dialogflow/cx/v3beta1/dialogflow_grpc_service_config.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@
1111
{
1212
"service": "google.cloud.dialogflow.cx.v3beta1.Deployments"
1313
},
14+
{
15+
"service": "google.cloud.dialogflow.cx.v3beta1.EncryptionSpecService"
16+
},
1417
{
1518
"service": "google.cloud.dialogflow.cx.v3beta1.EntityTypes"
1619
},
@@ -35,6 +38,15 @@
3538
{
3639
"service": "google.cloud.dialogflow.cx.v3beta1.Pages"
3740
},
41+
{
42+
"service": "google.cloud.dialogflow.cx.v3beta1.Playbooks"
43+
},
44+
{
45+
"service": "google.cloud.dialogflow.cx.v3beta1.Examples"
46+
},
47+
{
48+
"service": "google.cloud.dialogflow.cx.v3beta1.Tools"
49+
},
3850
{
3951
"service": "google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService"
4052
},

google/cloud/dialogflow/cx/v3beta1/dialogflow_v3beta1.yaml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,18 @@ apis:
99
- name: google.cloud.dialogflow.cx.v3beta1.Deployments
1010
- name: google.cloud.dialogflow.cx.v3beta1.EntityTypes
1111
- name: google.cloud.dialogflow.cx.v3beta1.Environments
12+
- name: google.cloud.dialogflow.cx.v3beta1.Examples
1213
- name: google.cloud.dialogflow.cx.v3beta1.Experiments
1314
- name: google.cloud.dialogflow.cx.v3beta1.Flows
1415
- name: google.cloud.dialogflow.cx.v3beta1.Generators
1516
- name: google.cloud.dialogflow.cx.v3beta1.Intents
1617
- name: google.cloud.dialogflow.cx.v3beta1.Pages
18+
- name: google.cloud.dialogflow.cx.v3beta1.Playbooks
1719
- name: google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService
1820
- name: google.cloud.dialogflow.cx.v3beta1.SessionEntityTypes
1921
- name: google.cloud.dialogflow.cx.v3beta1.Sessions
2022
- name: google.cloud.dialogflow.cx.v3beta1.TestCases
23+
- name: google.cloud.dialogflow.cx.v3beta1.Tools
2124
- name: google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups
2225
- name: google.cloud.dialogflow.cx.v3beta1.Versions
2326
- name: google.cloud.dialogflow.cx.v3beta1.Webhooks
@@ -31,11 +34,15 @@ types:
3134
- name: google.cloud.dialogflow.cx.v3beta1.DeployFlowMetadata
3235
- name: google.cloud.dialogflow.cx.v3beta1.DeployFlowResponse
3336
- name: google.cloud.dialogflow.cx.v3beta1.ExportAgentResponse
37+
- name: google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesMetadata
38+
- name: google.cloud.dialogflow.cx.v3beta1.ExportEntityTypesResponse
3439
- name: google.cloud.dialogflow.cx.v3beta1.ExportFlowResponse
3540
- name: google.cloud.dialogflow.cx.v3beta1.ExportIntentsMetadata
3641
- name: google.cloud.dialogflow.cx.v3beta1.ExportIntentsResponse
3742
- name: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesMetadata
3843
- name: google.cloud.dialogflow.cx.v3beta1.ExportTestCasesResponse
44+
- name: google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesMetadata
45+
- name: google.cloud.dialogflow.cx.v3beta1.ImportEntityTypesResponse
3946
- name: google.cloud.dialogflow.cx.v3beta1.ImportFlowResponse
4047
- name: google.cloud.dialogflow.cx.v3beta1.ImportIntentsMetadata
4148
- name: google.cloud.dialogflow.cx.v3beta1.ImportIntentsResponse
@@ -131,6 +138,11 @@ authentication:
131138
canonical_scopes: |-
132139
https://www.googleapis.com/auth/cloud-platform,
133140
https://www.googleapis.com/auth/dialogflow
141+
- selector: 'google.cloud.dialogflow.cx.v3beta1.Examples.*'
142+
oauth:
143+
canonical_scopes: |-
144+
https://www.googleapis.com/auth/cloud-platform,
145+
https://www.googleapis.com/auth/dialogflow
134146
- selector: 'google.cloud.dialogflow.cx.v3beta1.Experiments.*'
135147
oauth:
136148
canonical_scopes: |-
@@ -156,6 +168,11 @@ authentication:
156168
canonical_scopes: |-
157169
https://www.googleapis.com/auth/cloud-platform,
158170
https://www.googleapis.com/auth/dialogflow
171+
- selector: 'google.cloud.dialogflow.cx.v3beta1.Playbooks.*'
172+
oauth:
173+
canonical_scopes: |-
174+
https://www.googleapis.com/auth/cloud-platform,
175+
https://www.googleapis.com/auth/dialogflow
159176
- selector: 'google.cloud.dialogflow.cx.v3beta1.SecuritySettingsService.*'
160177
oauth:
161178
canonical_scopes: |-
@@ -176,6 +193,11 @@ authentication:
176193
canonical_scopes: |-
177194
https://www.googleapis.com/auth/cloud-platform,
178195
https://www.googleapis.com/auth/dialogflow
196+
- selector: 'google.cloud.dialogflow.cx.v3beta1.Tools.*'
197+
oauth:
198+
canonical_scopes: |-
199+
https://www.googleapis.com/auth/cloud-platform,
200+
https://www.googleapis.com/auth/dialogflow
179201
- selector: 'google.cloud.dialogflow.cx.v3beta1.TransitionRouteGroups.*'
180202
oauth:
181203
canonical_scopes: |-

0 commit comments

Comments
 (0)