Skip to content
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 @@ -381,6 +381,9 @@ class SummarizationFeedback(proto.Message):
Timestamp when the summary was submitted.
summary_text (str):
Text of actual submitted summary.
text_sections (MutableMapping[str, str]):
Optional. Actual text sections of submitted
summary.
"""

start_time: timestamp_pb2.Timestamp = proto.Field(
Expand All @@ -397,6 +400,11 @@ class SummarizationFeedback(proto.Message):
proto.STRING,
number=3,
)
text_sections: MutableMapping[str, str] = proto.MapField(
proto.STRING,
proto.STRING,
number=4,
)

class KnowledgeSearchFeedback(proto.Message):
r"""Feedback for knowledge search.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -437,6 +437,12 @@ class InputAudioConfig(proto.Message):
enable_automatic_punctuation (bool):
Enable automatic punctuation option at the
speech backend.
opt_out_conformer_model_migration (bool):
If ``true``, the request will opt out for STT conformer
model migration. This field will be deprecated once force
migration takes place in June 2024. Please refer to
`Dialogflow ES Speech model
migration <https://cloud.google.com/dialogflow/es/docs/speech-model-migration>`__.
"""

audio_encoding: "AudioEncoding" = proto.Field(
Expand Down Expand Up @@ -486,6 +492,10 @@ class InputAudioConfig(proto.Message):
proto.BOOL,
number=17,
)
opt_out_conformer_model_migration: bool = proto.Field(
proto.BOOL,
number=26,
)


class VoiceSelectionParams(proto.Message):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1021,15 +1021,16 @@ class MessageType(proto.Enum):
Message contains a (possibly partial)
transcript.
END_OF_SINGLE_UTTERANCE (2):
Event indicates that the server has detected the end of the
user's speech utterance and expects no additional inputs.
Therefore, the server will not process additional audio
(although it may subsequently return additional results).
The client should stop sending additional audio data,
half-close the gRPC connection, and wait for any additional
results until the server closes the gRPC connection. This
message is only sent if ``single_utterance`` was set to
``true``, and is not used otherwise.
This event indicates that the server has detected the end of
the user's speech utterance and expects no additional
inputs. Therefore, the server will not process additional
audio (although it may subsequently return additional
results). The client should stop sending additional audio
data, half-close the gRPC connection, and wait for any
additional results until the server closes the gRPC
connection. This message is only sent if
``single_utterance`` was set to ``true``, and is not used
otherwise.
"""
MESSAGE_TYPE_UNSPECIFIED = 0
TRANSCRIPT = 1
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2189,6 +2189,7 @@ def test_update_answer_record_rest(request_type):
"start_time": {"seconds": 751, "nanos": 543},
"submit_time": {},
"summary_text": "summary_text_value",
"text_sections": {},
},
"knowledge_search_feedback": {
"answer_copied": True,
Expand Down