Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::SessionInput.
Input for the session.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#audio
def audio() -> ::String-
(::String) — Optional. Audio data from the end user.
Note: The following fields are mutually exclusive:
audio,text,dtmf,tool_responses,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#audio=
def audio=(value) -> ::String-
value (::String) — Optional. Audio data from the end user.
Note: The following fields are mutually exclusive:
audio,text,dtmf,tool_responses,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. Audio data from the end user.
Note: The following fields are mutually exclusive:
audio,text,dtmf,tool_responses,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#blob
def blob() -> ::Google::Cloud::Ces::V1beta::Blob-
(::Google::Cloud::Ces::V1beta::Blob) — Optional. Blob data from the end user.
Note: The following fields are mutually exclusive:
blob,text,dtmf,audio,tool_responses,image,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#blob=
def blob=(value) -> ::Google::Cloud::Ces::V1beta::Blob-
value (::Google::Cloud::Ces::V1beta::Blob) — Optional. Blob data from the end user.
Note: The following fields are mutually exclusive:
blob,text,dtmf,audio,tool_responses,image,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Ces::V1beta::Blob) — Optional. Blob data from the end user.
Note: The following fields are mutually exclusive:
blob,text,dtmf,audio,tool_responses,image,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#dtmf
def dtmf() -> ::String-
(::String) — Optional. DTMF digits from the end user.
Note: The following fields are mutually exclusive:
dtmf,text,audio,tool_responses,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#dtmf=
def dtmf=(value) -> ::String-
value (::String) — Optional. DTMF digits from the end user.
Note: The following fields are mutually exclusive:
dtmf,text,audio,tool_responses,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. DTMF digits from the end user.
Note: The following fields are mutually exclusive:
dtmf,text,audio,tool_responses,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#event
def event() -> ::Google::Cloud::Ces::V1beta::Event-
(::Google::Cloud::Ces::V1beta::Event) — Optional. Event input.
Note: The following fields are mutually exclusive:
event,text,dtmf,audio,tool_responses,image,blob,variables. If a field in that set is populated, all other fields in the set will automatically be cleared.
#event=
def event=(value) -> ::Google::Cloud::Ces::V1beta::Event-
value (::Google::Cloud::Ces::V1beta::Event) — Optional. Event input.
Note: The following fields are mutually exclusive:
event,text,dtmf,audio,tool_responses,image,blob,variables. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Ces::V1beta::Event) — Optional. Event input.
Note: The following fields are mutually exclusive:
event,text,dtmf,audio,tool_responses,image,blob,variables. If a field in that set is populated, all other fields in the set will automatically be cleared.
#image
def image() -> ::Google::Cloud::Ces::V1beta::Image-
(::Google::Cloud::Ces::V1beta::Image) — Optional. Image data from the end user.
Note: The following fields are mutually exclusive:
image,text,dtmf,audio,tool_responses,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#image=
def image=(value) -> ::Google::Cloud::Ces::V1beta::Image-
value (::Google::Cloud::Ces::V1beta::Image) — Optional. Image data from the end user.
Note: The following fields are mutually exclusive:
image,text,dtmf,audio,tool_responses,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Ces::V1beta::Image) — Optional. Image data from the end user.
Note: The following fields are mutually exclusive:
image,text,dtmf,audio,tool_responses,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#recording_control
def recording_control() -> ::Google::Cloud::Ces::V1beta::SessionInput::RecordingControl-
(::Google::Cloud::Ces::V1beta::SessionInput::RecordingControl) — Optional. Whether the conversation may be recorded and logged from here on.
Use this when the app, rather than the agent, decides what may be kept: for example when the end user has to consent to being recorded before anything about the call can be stored.
The value stays in effect until the client sends a different one, so it only needs to be sent when the answer changes. Whatever is in effect when a turn completes decides that turn, both whether its audio reaches the recording bucket and whether its transcript reaches conversation history, BigQuery and Cloud Logging. It covers the agent's side of the turn as well as the end user's.
Turns that complete before the client first sends this are recorded according to the app's logging settings, as though the field did not exist.
If more than one input in the same request sets it, the last one wins.
#recording_control=
def recording_control=(value) -> ::Google::Cloud::Ces::V1beta::SessionInput::RecordingControl-
value (::Google::Cloud::Ces::V1beta::SessionInput::RecordingControl) — Optional. Whether the conversation may be recorded and logged from here on.
Use this when the app, rather than the agent, decides what may be kept: for example when the end user has to consent to being recorded before anything about the call can be stored.
The value stays in effect until the client sends a different one, so it only needs to be sent when the answer changes. Whatever is in effect when a turn completes decides that turn, both whether its audio reaches the recording bucket and whether its transcript reaches conversation history, BigQuery and Cloud Logging. It covers the agent's side of the turn as well as the end user's.
Turns that complete before the client first sends this are recorded according to the app's logging settings, as though the field did not exist.
If more than one input in the same request sets it, the last one wins.
-
(::Google::Cloud::Ces::V1beta::SessionInput::RecordingControl) — Optional. Whether the conversation may be recorded and logged from here on.
Use this when the app, rather than the agent, decides what may be kept: for example when the end user has to consent to being recorded before anything about the call can be stored.
The value stays in effect until the client sends a different one, so it only needs to be sent when the answer changes. Whatever is in effect when a turn completes decides that turn, both whether its audio reaches the recording bucket and whether its transcript reaches conversation history, BigQuery and Cloud Logging. It covers the agent's side of the turn as well as the end user's.
Turns that complete before the client first sends this are recorded according to the app's logging settings, as though the field did not exist.
If more than one input in the same request sets it, the last one wins.
#text
def text() -> ::String-
(::String) — Optional. Text data from the end user.
Note: The following fields are mutually exclusive:
text,dtmf,audio,tool_responses,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#text=
def text=(value) -> ::String-
value (::String) — Optional. Text data from the end user.
Note: The following fields are mutually exclusive:
text,dtmf,audio,tool_responses,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. Text data from the end user.
Note: The following fields are mutually exclusive:
text,dtmf,audio,tool_responses,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#tool_responses
def tool_responses() -> ::Google::Cloud::Ces::V1beta::ToolResponses-
(::Google::Cloud::Ces::V1beta::ToolResponses) — Optional. Execution results for the tool calls from the client.
Note: The following fields are mutually exclusive:
tool_responses,text,dtmf,audio,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#tool_responses=
def tool_responses=(value) -> ::Google::Cloud::Ces::V1beta::ToolResponses-
value (::Google::Cloud::Ces::V1beta::ToolResponses) — Optional. Execution results for the tool calls from the client.
Note: The following fields are mutually exclusive:
tool_responses,text,dtmf,audio,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Cloud::Ces::V1beta::ToolResponses) — Optional. Execution results for the tool calls from the client.
Note: The following fields are mutually exclusive:
tool_responses,text,dtmf,audio,image,blob,variables,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#variables
def variables() -> ::Google::Protobuf::Struct-
(::Google::Protobuf::Struct) — Optional. Contextual variables for the session, keyed by name. Only
variables declared in the app will be used by the CES agent.
Unrecognized variables will still be sent to the [Dialogflow agent][Agent.RemoteDialogflowAgent] as additional session parameters.
Note: The following fields are mutually exclusive:
variables,text,dtmf,audio,tool_responses,image,blob,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#variables=
def variables=(value) -> ::Google::Protobuf::Struct-
value (::Google::Protobuf::Struct) — Optional. Contextual variables for the session, keyed by name. Only
variables declared in the app will be used by the CES agent.
Unrecognized variables will still be sent to the [Dialogflow agent][Agent.RemoteDialogflowAgent] as additional session parameters.
Note: The following fields are mutually exclusive:
variables,text,dtmf,audio,tool_responses,image,blob,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Struct) — Optional. Contextual variables for the session, keyed by name. Only
variables declared in the app will be used by the CES agent.
Unrecognized variables will still be sent to the [Dialogflow agent][Agent.RemoteDialogflowAgent] as additional session parameters.
Note: The following fields are mutually exclusive:
variables,text,dtmf,audio,tool_responses,image,blob,event. If a field in that set is populated, all other fields in the set will automatically be cleared.
#will_continue
def will_continue() -> ::Boolean-
(::Boolean) — Optional. A flag to indicate if the current message is a fragment of a
larger input in the bidi streaming session.
When set to
true, the agent defers processing until it receives a subsequent message wherewill_continueisfalse, or until the system detects an endpoint in the audio input.NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal.
#will_continue=
def will_continue=(value) -> ::Boolean-
value (::Boolean) — Optional. A flag to indicate if the current message is a fragment of a
larger input in the bidi streaming session.
When set to
true, the agent defers processing until it receives a subsequent message wherewill_continueisfalse, or until the system detects an endpoint in the audio input.NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal.
-
(::Boolean) — Optional. A flag to indicate if the current message is a fragment of a
larger input in the bidi streaming session.
When set to
true, the agent defers processing until it receives a subsequent message wherewill_continueisfalse, or until the system detects an endpoint in the audio input.NOTE: This field does not apply to audio and DTMF inputs, as they are always processed automatically based on the endpointing signal.