| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent bd4166c commit 8dc86c1
17 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -55,6 +55,7 @@ proto_library( | |||
| 55 | 55 | "test_case.proto", | |
| 56 | 56 | "tool.proto", | |
| 57 | 57 | "tool_call.proto", | |
| 58 | + "trace.proto", | ||
| 58 | 59 | "transition_route_group.proto", | |
| 59 | 60 | "validation_message.proto", | |
| 60 | 61 | "version.proto", | |
@@ -198,11 +199,12 @@ load( | |||
| 198 | 199 | "@com_google_googleapis_imports//:imports.bzl", | |
| 199 | 200 | "go_gapic_assembly_pkg", | |
| 200 | 201 | "go_gapic_library", | |
| 201 | - "go_grpc_library", | ||
| 202 | + "go_proto_library", | ||
| 202 | 203 | ) | |
| 203 | 204 | ||
| 204 | - go_grpc_library( | ||
| 205 | + go_proto_library( | ||
| 205 | 206 | name = "cx_go_proto", | |
| 207 | + compilers = ["@io_bazel_rules_go//proto:go_grpc"], | ||
| 206 | 208 | importpath = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb", | |
| 207 | 209 | protos = [":cx_proto"], | |
| 208 | 210 | deps = [ | |
@@ -430,6 +432,7 @@ load( | |||
| 430 | 432 | ||
| 431 | 433 | csharp_proto_library( | |
| 432 | 434 | name = "cx_csharp_proto", | |
| 435 | + extra_opts = [], | ||
| 433 | 436 | deps = [":cx_proto"], | |
| 434 | 437 | ) | |
| 435 | 438 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -42,6 +42,7 @@ enum AudioEncoding { | |||
| 42 | 42 | AUDIO_ENCODING_UNSPECIFIED = 0; | |
| 43 | 43 | ||
| 44 | 44 | // Uncompressed 16-bit signed little-endian samples (Linear PCM). | |
| 45 | + // LINT: LEGACY_NAMES | ||
| 45 | 46 | AUDIO_ENCODING_LINEAR_16 = 1; | |
| 46 | 47 | ||
| 47 | 48 | // [`FLAC`](https://xiph.org/flac/documentation.html) (Free Lossless Audio | |
@@ -310,12 +311,14 @@ enum OutputAudioEncoding { | |||
| 310 | 311 | ||
| 311 | 312 | // Uncompressed 16-bit signed little-endian samples (Linear PCM). | |
| 312 | 313 | // Audio content returned as LINEAR16 also contains a WAV header. | |
| 314 | + // LINT: LEGACY_NAMES | ||
| 313 | 315 | OUTPUT_AUDIO_ENCODING_LINEAR_16 = 1; | |
| 314 | 316 | ||
| 315 | 317 | // MP3 audio at 32kbps. | |
| 316 | 318 | OUTPUT_AUDIO_ENCODING_MP3 = 2; | |
| 317 | 319 | ||
| 318 | 320 | // MP3 audio at 64kbps. | |
| 321 | + // LINT: LEGACY_NAMES | ||
| 319 | 322 | OUTPUT_AUDIO_ENCODING_MP3_64_KBPS = 4; | |
| 320 | 323 | ||
| 321 | 324 | // Opus encoded audio wrapped in an ogg container. The result will be a | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -17,6 +17,7 @@ syntax = "proto3"; | |||
| 17 | 17 | package google.cloud.dialogflow.cx.v3beta1; | |
| 18 | 18 | ||
| 19 | 19 | import "google/api/field_behavior.proto"; | |
| 20 | + import "google/protobuf/struct.proto"; | ||
| 20 | 21 | ||
| 21 | 22 | option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; | |
| 22 | 23 | option go_package = "cloud.google.com/go/dialogflow/cx/apiv3beta1/cxpb;cxpb"; | |
@@ -72,6 +73,9 @@ message DataStoreConnectionSignals { | |||
| 72 | 73 | ||
| 73 | 74 | // Text included in the prompt. | |
| 74 | 75 | string text = 3; | |
| 76 | + | ||
| 77 | + // Metadata associated with the document. | ||
| 78 | + google.protobuf.Struct metadata = 5; | ||
| 75 | 79 | } | |
| 76 | 80 | ||
| 77 | 81 | // Diagnostic info related to the answer generation model call. | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -38,6 +38,9 @@ | |||
| 38 | 38 | { | |
| 39 | 39 | "service": "google.cloud.dialogflow.cx.v3beta1.Intents" | |
| 40 | 40 | }, | |
| 41 | + { | ||
| 42 | + "service": "google.cloud.dialogflow.cx.v3beta1.Integrations" | ||
| 43 | + }, | ||
| 41 | 44 | { | |
| 42 | 45 | "service": "google.cloud.dialogflow.cx.v3beta1.Pages" | |
| 43 | 46 | }, | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -200,11 +200,13 @@ message Environment { | |||
| 200 | 200 | ||
| 201 | 201 | // Configuration for the version. | |
| 202 | 202 | message VersionConfig { | |
| 203 | - // Required. Both flow and playbook versions are supported. | ||
| 203 | + // Required. Flow, playbook and tool versions are supported. | ||
| 204 | 204 | // Format for flow version: | |
| 205 | 205 | // projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>/versions/<VersionID>. | |
| 206 | 206 | // Format for playbook version: | |
| 207 | 207 | // projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>/versions/<VersionID>. | |
| 208 | + // Format for tool version: | ||
| 209 | + // projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>/versions/<VersionID>. | ||
| 208 | 210 | string version = 1 [ | |
| 209 | 211 | (google.api.field_behavior) = REQUIRED, | |
| 210 | 212 | (google.api.resource_reference) = { | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -20,9 +20,9 @@ import "google/api/annotations.proto"; | |||
| 20 | 20 | import "google/api/client.proto"; | |
| 21 | 21 | import "google/api/field_behavior.proto"; | |
| 22 | 22 | import "google/api/resource.proto"; | |
| 23 | + import "google/cloud/dialogflow/cx/v3beta1/trace.proto"; | ||
| 23 | 24 | import "google/protobuf/empty.proto"; | |
| 24 | 25 | import "google/protobuf/field_mask.proto"; | |
| 25 | - import "google/protobuf/struct.proto"; | ||
| 26 | 26 | import "google/protobuf/timestamp.proto"; | |
| 27 | 27 | ||
| 28 | 28 | option csharp_namespace = "Google.Cloud.Dialogflow.Cx.V3Beta1"; | |
@@ -235,157 +235,3 @@ message Example { | |||
| 235 | 235 | // Note: example's language code is not currently used in dialogflow agents. | |
| 236 | 236 | string language_code = 13 [(google.api.field_behavior) = OPTIONAL]; | |
| 237 | 237 | } | |
| 238 | - | ||
| 239 | - // Input of the playbook. | ||
| 240 | - message PlaybookInput { | ||
| 241 | - // Optional. Summary string of the preceding conversation for the child | ||
| 242 | - // playbook invocation. | ||
| 243 | - string preceding_conversation_summary = 1 | ||
| 244 | - [(google.api.field_behavior) = OPTIONAL]; | ||
| 245 | - | ||
| 246 | - // Optional. A list of input parameters for the action. | ||
| 247 | - google.protobuf.Struct action_parameters = 3 | ||
| 248 | - [(google.api.field_behavior) = OPTIONAL]; | ||
| 249 | - } | ||
| 250 | - | ||
| 251 | - // Output of the playbook. | ||
| 252 | - message PlaybookOutput { | ||
| 253 | - // Optional. Summary string of the execution result of the child playbook. | ||
| 254 | - string execution_summary = 1 [(google.api.field_behavior) = OPTIONAL]; | ||
| 255 | - | ||
| 256 | - // Optional. A Struct object of output parameters for the action. | ||
| 257 | - google.protobuf.Struct action_parameters = 4 | ||
| 258 | - [(google.api.field_behavior) = OPTIONAL]; | ||
| 259 | - } | ||
| 260 | - | ||
| 261 | - // Action performed by end user or Dialogflow agent in the conversation. | ||
| 262 | - message Action { | ||
| 263 | - // Action details. | ||
| 264 | - oneof action { | ||
| 265 | - // Optional. Agent obtained a message from the customer. | ||
| 266 | - UserUtterance user_utterance = 1 [(google.api.field_behavior) = OPTIONAL]; | ||
| 267 | - | ||
| 268 | - // Optional. Action performed by the agent as a message. | ||
| 269 | - AgentUtterance agent_utterance = 2 [(google.api.field_behavior) = OPTIONAL]; | ||
| 270 | - | ||
| 271 | - // Optional. Action performed on behalf of the agent by calling a plugin | ||
| 272 | - // tool. | ||
| 273 | - ToolUse tool_use = 3 [(google.api.field_behavior) = OPTIONAL]; | ||
| 274 | - | ||
| 275 | - // Optional. Action performed on behalf of the agent by invoking a child | ||
| 276 | - // playbook. | ||
| 277 | - PlaybookInvocation playbook_invocation = 4 | ||
| 278 | - [(google.api.field_behavior) = OPTIONAL]; | ||
| 279 | - | ||
| 280 | - // Optional. Action performed on behalf of the agent by invoking a CX flow. | ||
| 281 | - FlowInvocation flow_invocation = 5 [(google.api.field_behavior) = OPTIONAL]; | ||
| 282 | - } | ||
| 283 | - } | ||
| 284 | - | ||
| 285 | - // UserUtterance represents one message sent by the customer. | ||
| 286 | - message UserUtterance { | ||
| 287 | - // Required. Message content in text. | ||
| 288 | - string text = 1 [(google.api.field_behavior) = REQUIRED]; | ||
| 289 | - } | ||
| 290 | - | ||
| 291 | - // AgentUtterance represents one message sent by the agent. | ||
| 292 | - message AgentUtterance { | ||
| 293 | - // Required. Message content in text. | ||
| 294 | - string text = 1 [(google.api.field_behavior) = REQUIRED]; | ||
| 295 | - } | ||
| 296 | - | ||
| 297 | - // Stores metadata of the invocation of an action supported by a tool. | ||
| 298 | - message ToolUse { | ||
| 299 | - // Required. The [tool][google.cloud.dialogflow.cx.v3beta1.Tool] that should | ||
| 300 | - // be used. Format: | ||
| 301 | - // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/tools/<ToolID>`. | ||
| 302 | - string tool = 1 [ | ||
| 303 | - (google.api.field_behavior) = REQUIRED, | ||
| 304 | - (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Tool" } | ||
| 305 | - ]; | ||
| 306 | - | ||
| 307 | - // Output only. The display name of the tool. | ||
| 308 | - string display_name = 8 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 309 | - | ||
| 310 | - // Optional. Name of the action to be called during the tool use. | ||
| 311 | - string action = 2 [(google.api.field_behavior) = OPTIONAL]; | ||
| 312 | - | ||
| 313 | - // Optional. A list of input parameters for the action. | ||
| 314 | - google.protobuf.Struct input_action_parameters = 5 | ||
| 315 | - [(google.api.field_behavior) = OPTIONAL]; | ||
| 316 | - | ||
| 317 | - // Optional. A list of output parameters generated by the action. | ||
| 318 | - google.protobuf.Struct output_action_parameters = 6 | ||
| 319 | - [(google.api.field_behavior) = OPTIONAL]; | ||
| 320 | - } | ||
| 321 | - | ||
| 322 | - // Stores metadata of the invocation of a child playbook. | ||
| 323 | - message PlaybookInvocation { | ||
| 324 | - // Required. The unique identifier of the playbook. | ||
| 325 | - // Format: | ||
| 326 | - // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/playbooks/<PlaybookID>`. | ||
| 327 | - string playbook = 1 [ | ||
| 328 | - (google.api.field_behavior) = REQUIRED, | ||
| 329 | - (google.api.resource_reference) = { | ||
| 330 | - type: "dialogflow.googleapis.com/Playbook" | ||
| 331 | - } | ||
| 332 | - ]; | ||
| 333 | - | ||
| 334 | - // Output only. The display name of the playbook. | ||
| 335 | - string display_name = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 336 | - | ||
| 337 | - // Optional. Input of the child playbook invocation. | ||
| 338 | - PlaybookInput playbook_input = 2 [(google.api.field_behavior) = OPTIONAL]; | ||
| 339 | - | ||
| 340 | - // Optional. Output of the child playbook invocation. | ||
| 341 | - PlaybookOutput playbook_output = 3 [(google.api.field_behavior) = OPTIONAL]; | ||
| 342 | - | ||
| 343 | - // Required. Playbook invocation's output state. | ||
| 344 | - OutputState playbook_state = 4 [(google.api.field_behavior) = REQUIRED]; | ||
| 345 | - } | ||
| 346 | - | ||
| 347 | - // Stores metadata of the invocation of a CX flow. | ||
| 348 | - message FlowInvocation { | ||
| 349 | - // Required. The unique identifier of the flow. | ||
| 350 | - // Format: | ||
| 351 | - // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/flows/<FlowID>`. | ||
| 352 | - string flow = 1 [ | ||
| 353 | - (google.api.field_behavior) = REQUIRED, | ||
| 354 | - (google.api.resource_reference) = { type: "dialogflow.googleapis.com/Flow" } | ||
| 355 | - ]; | ||
| 356 | - | ||
| 357 | - // Output only. The display name of the flow. | ||
| 358 | - string display_name = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
| 359 | - | ||
| 360 | - // Optional. A list of input parameters for the flow. | ||
| 361 | - google.protobuf.Struct input_action_parameters = 5 | ||
| 362 | - [(google.api.field_behavior) = OPTIONAL]; | ||
| 363 | - | ||
| 364 | - // Optional. A list of output parameters generated by the flow invocation. | ||
| 365 | - google.protobuf.Struct output_action_parameters = 6 | ||
| 366 | - [(google.api.field_behavior) = OPTIONAL]; | ||
| 367 | - | ||
| 368 | - // Required. Flow invocation's output state. | ||
| 369 | - OutputState flow_state = 4 [(google.api.field_behavior) = REQUIRED]; | ||
| 370 | - } | ||
| 371 | - | ||
| 372 | - // Output state. | ||
| 373 | - enum OutputState { | ||
| 374 | - // Unspecified output. | ||
| 375 | - OUTPUT_STATE_UNSPECIFIED = 0; | ||
| 376 | - | ||
| 377 | - // Succeeded. | ||
| 378 | - OUTPUT_STATE_OK = 1; | ||
| 379 | - | ||
| 380 | - // Cancelled. | ||
| 381 | - OUTPUT_STATE_CANCELLED = 2; | ||
| 382 | - | ||
| 383 | - // Failed. | ||
| 384 | - OUTPUT_STATE_FAILED = 3; | ||
| 385 | - | ||
| 386 | - // Escalated. | ||
| 387 | - OUTPUT_STATE_ESCALATED = 4; | ||
| 388 | - | ||
| 389 | - // Pending. | ||
| 390 | - OUTPUT_STATE_PENDING = 5; | ||
| 391 | - } | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,6 +23,7 @@ import "google/api/resource.proto"; | |||
| 23 | 23 | import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto"; | |
| 24 | 24 | import "google/cloud/dialogflow/cx/v3beta1/import_strategy.proto"; | |
| 25 | 25 | import "google/cloud/dialogflow/cx/v3beta1/page.proto"; | |
| 26 | + import "google/cloud/dialogflow/cx/v3beta1/parameter_definition.proto"; | ||
| 26 | 27 | import "google/cloud/dialogflow/cx/v3beta1/validation_message.proto"; | |
| 27 | 28 | import "google/longrunning/operations.proto"; | |
| 28 | 29 | import "google/protobuf/empty.proto"; | |
@@ -349,6 +350,14 @@ message Flow { | |||
| 349 | 350 | KnowledgeConnectorSettings knowledge_connector_settings = 18 | |
| 350 | 351 | [(google.api.field_behavior) = OPTIONAL]; | |
| 351 | 352 | ||
| 353 | + // Optional. Defined structured input parameters for this flow. | ||
| 354 | + repeated ParameterDefinition input_parameter_definitions = 26 | ||
| 355 | + [(google.api.field_behavior) = OPTIONAL]; | ||
| 356 | + | ||
| 357 | + // Optional. Defined structured output parameters for this flow. | ||
| 358 | + repeated ParameterDefinition output_parameter_definitions = 27 | ||
| 359 | + [(google.api.field_behavior) = OPTIONAL]; | ||
| 360 | + | ||
| 352 | 361 | // Optional. Multi-lingual agent settings for this flow. | |
| 353 | 362 | MultiLanguageSettings multi_language_settings = 28 | |
| 354 | 363 | [(google.api.field_behavior) = OPTIONAL]; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -16,6 +16,7 @@ syntax = "proto3"; | |||
| 16 | 16 | ||
| 17 | 17 | package google.cloud.dialogflow.cx.v3beta1; | |
| 18 | 18 | ||
| 19 | + import "google/api/field_behavior.proto"; | ||
| 19 | 20 | import "google/api/resource.proto"; | |
| 20 | 21 | import "google/cloud/dialogflow/cx/v3beta1/advanced_settings.proto"; | |
| 21 | 22 | import "google/cloud/dialogflow/cx/v3beta1/response_message.proto"; | |
@@ -91,6 +92,34 @@ message Fulfillment { | |||
| 91 | 92 | repeated Case cases = 1; | |
| 92 | 93 | } | |
| 93 | 94 | ||
| 95 | + // Generator settings used by the LLM to generate a text response. | ||
| 96 | + message GeneratorSettings { | ||
| 97 | + // Required. The generator to call. | ||
| 98 | + // Format: | ||
| 99 | + // `projects/<ProjectID>/locations/<LocationID>/agents/<AgentID>/generators/<GeneratorID>`. | ||
| 100 | + string generator = 1 [ | ||
| 101 | + (google.api.field_behavior) = REQUIRED, | ||
| 102 | + (google.api.resource_reference) = { | ||
| 103 | + type: "dialogflow.googleapis.com/Generator" | ||
| 104 | + } | ||
| 105 | + ]; | ||
| 106 | + | ||
| 107 | + // Map from [placeholder parameter][Generator.Parameter.id] in the | ||
| 108 | + // [Generator][google.cloud.dialogflow.cx.v3beta1.Generator] to | ||
| 109 | + // corresponding session parameters. By default, Dialogflow uses the session | ||
| 110 | + // parameter with the same name to fill in the generator template. e.g. If | ||
| 111 | + // there is a placeholder parameter `city` in the Generator, Dialogflow | ||
| 112 | + // default to fill in the `$city` with | ||
| 113 | + // `$session.params.city`. However, you may choose to fill `$city` with | ||
| 114 | + // `$session.params.desination-city`. | ||
| 115 | + // - Map key: [parameter ID][Genrator.Parameter.id] | ||
| 116 | + // - Map value: session parameter name | ||
| 117 | + map<string, string> input_parameters = 2; | ||
| 118 | + | ||
| 119 | + // Required. Output parameter which should contain the generator response. | ||
| 120 | + string output_parameter = 3 [(google.api.field_behavior) = REQUIRED]; | ||
| 121 | + } | ||
| 122 | + | ||
| 94 | 123 | // The list of rich message responses to present to the user. | |
| 95 | 124 | repeated ResponseMessage messages = 1; | |
| 96 | 125 | ||
@@ -137,4 +166,7 @@ message Fulfillment { | |||
| 137 | 166 | // fulfillment will be respected. This flag is only useful for fulfillments | |
| 138 | 167 | // associated with no-match event handlers. | |
| 139 | 168 | bool enable_generative_fallback = 12; | |
| 169 | + | ||
| 170 | + // A list of Generators to be called during this fulfillment. | ||
| 171 | + repeated GeneratorSettings generators = 13; | ||
| 140 | 172 | } | |
| Back | FazBrowse Home | New Git URL |
0 commit comments