Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: [dialogflow] Add the enable_extended_streaming flag #4724

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -605,6 +605,27 @@ message StreamingAnalyzeContentRequest {
// CX agent.
google.protobuf.Struct cx_parameters = 13;

// Optional. Enable full bidirectional streaming. You can keep streaming the
// audio until timeout, and there's no need to half close the stream to get
// the response.
//
// Restrictions:
//
// - Timeout: 3 mins.
// - Audio Encoding: only supports
// [AudioEncoding.AUDIO_ENCODING_LINEAR_16][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_LINEAR_16]
// and
// [AudioEncoding.AUDIO_ENCODING_MULAW][google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW]
// - Lifecycle: conversation should be in `Assist Stage`, go to
// [Conversation.CreateConversation][] for more information.
//
// InvalidArgument Error will be returned if the one of restriction checks
// failed.
//
// You can find more details in
// https://cloud.google.com/agent-assist/docs/extended-streaming
bool enable_extended_streaming = 11 [(google.api.field_behavior) = OPTIONAL];

// Enable partial virtual agent responses. If this flag is not enabled,
// response stream still contains only one final response even if some
// `Fulfillment`s in Dialogflow virtual agent have been configured to return
Expand Down
6 changes: 6 additions & 0 deletions packages/google-cloud-dialogflow/protos/protos.d.ts

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

23 changes: 23 additions & 0 deletions packages/google-cloud-dialogflow/protos/protos.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

7 changes: 7 additions & 0 deletions packages/google-cloud-dialogflow/protos/protos.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,24 @@ function main(participant) {
* CX agent.
*/
// const cxParameters = {}
/**
* Optional. Enable full bidirectional streaming. You can keep streaming the
* audio until timeout, and there's no need to half close the stream to get
* the response.
* Restrictions:
* - Timeout: 3 mins.
* - Audio Encoding: only supports
* AudioEncoding.AUDIO_ENCODING_LINEAR_16 google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_LINEAR_16
* and
* AudioEncoding.AUDIO_ENCODING_MULAW google.cloud.dialogflow.v2.AudioEncoding.AUDIO_ENCODING_MULAW
* - Lifecycle: conversation should be in `Assist Stage`, go to
* Conversation.CreateConversation for more information.
* InvalidArgument Error will be returned if the one of restriction checks
* failed.
* You can find more details in
* https://cloud.google.com/agent-assist/docs/extended-streaming
*/
// const enableExtendedStreaming = true
/**
* Enable partial virtual agent responses. If this flag is not enabled,
* response stream still contains only one final response even if some
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4114,7 +4114,7 @@
"segments": [
{
"start": 25,
"end": 122,
"end": 140,
"type": "FULL"
}
],
Expand Down Expand Up @@ -4163,6 +4163,10 @@
"name": "cx_parameters",
"type": ".google.protobuf.Struct"
},
{
"name": "enable_extended_streaming",
"type": "TYPE_BOOL"
},
{
"name": "enable_partial_automated_agent_reply",
"type": "TYPE_BOOL"
Expand Down