Reference documentation and code samples for the Gemini Enterprise for Customer Experience V1BETA API class Google::Cloud::Ces::V1beta::SessionConfig.
The configuration for the session.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#deployment
def deployment() -> ::String-
(::String) — Optional. The deployment of the app to use for the session.
Format:
projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
#deployment=
def deployment=(value) -> ::String-
value (::String) — Optional. The deployment of the app to use for the session.
Format:
projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
-
(::String) — Optional. The deployment of the app to use for the session.
Format:
projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
#enable_text_streaming
def enable_text_streaming() -> ::Boolean- (::Boolean) — Optional. Whether to enable streaming text outputs from the model. By default, text outputs from the model are collected before sending to the client. NOTE: This is only supported for text (non-voice) sessions via StreamRunSession or BidiRunSession.
#enable_text_streaming=
def enable_text_streaming=(value) -> ::Boolean- value (::Boolean) — Optional. Whether to enable streaming text outputs from the model. By default, text outputs from the model are collected before sending to the client. NOTE: This is only supported for text (non-voice) sessions via StreamRunSession or BidiRunSession.
- (::Boolean) — Optional. Whether to enable streaming text outputs from the model. By default, text outputs from the model are collected before sending to the client. NOTE: This is only supported for text (non-voice) sessions via StreamRunSession or BidiRunSession.
#entry_agent
def entry_agent() -> ::String-
(::String) — Optional. The entry agent to handle the session. If not specified, the
session will be handled by the [root
agent][google.cloud.ces.v1beta.App.root_agent] of the app. Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
#entry_agent=
def entry_agent=(value) -> ::String-
value (::String) — Optional. The entry agent to handle the session. If not specified, the
session will be handled by the [root
agent][google.cloud.ces.v1beta.App.root_agent] of the app. Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
-
(::String) — Optional. The entry agent to handle the session. If not specified, the
session will be handled by the [root
agent][google.cloud.ces.v1beta.App.root_agent] of the app. Format:
projects/{project}/locations/{location}/apps/{app}/agents/{agent}
#historical_contexts
def historical_contexts() -> ::Array<::Google::Cloud::Ces::V1beta::Message>- (::Array<::Google::Cloud::Ces::V1beta::Message>) — Optional. The historical context of the session, including user inputs, agent responses, and other messages. Typically, CES agent would manage session automatically so client doesn't need to explicitly populate this field. However, client can optionally override the historical contexts to force the session start from certain state.
#historical_contexts=
def historical_contexts=(value) -> ::Array<::Google::Cloud::Ces::V1beta::Message>- value (::Array<::Google::Cloud::Ces::V1beta::Message>) — Optional. The historical context of the session, including user inputs, agent responses, and other messages. Typically, CES agent would manage session automatically so client doesn't need to explicitly populate this field. However, client can optionally override the historical contexts to force the session start from certain state.
- (::Array<::Google::Cloud::Ces::V1beta::Message>) — Optional. The historical context of the session, including user inputs, agent responses, and other messages. Typically, CES agent would manage session automatically so client doesn't need to explicitly populate this field. However, client can optionally override the historical contexts to force the session start from certain state.
#input_audio_config
def input_audio_config() -> ::Google::Cloud::Ces::V1beta::InputAudioConfig- (::Google::Cloud::Ces::V1beta::InputAudioConfig) — Optional. Configuration for processing the input audio.
#input_audio_config=
def input_audio_config=(value) -> ::Google::Cloud::Ces::V1beta::InputAudioConfig- value (::Google::Cloud::Ces::V1beta::InputAudioConfig) — Optional. Configuration for processing the input audio.
- (::Google::Cloud::Ces::V1beta::InputAudioConfig) — Optional. Configuration for processing the input audio.
#output_audio_config
def output_audio_config() -> ::Google::Cloud::Ces::V1beta::OutputAudioConfig- (::Google::Cloud::Ces::V1beta::OutputAudioConfig) — Optional. Configuration for generating the output audio.
#output_audio_config=
def output_audio_config=(value) -> ::Google::Cloud::Ces::V1beta::OutputAudioConfig- value (::Google::Cloud::Ces::V1beta::OutputAudioConfig) — Optional. Configuration for generating the output audio.
- (::Google::Cloud::Ces::V1beta::OutputAudioConfig) — Optional. Configuration for generating the output audio.
#remote_dialogflow_query_parameters
def remote_dialogflow_query_parameters() -> ::Google::Cloud::Ces::V1beta::SessionConfig::RemoteDialogflowQueryParameters- (::Google::Cloud::Ces::V1beta::SessionConfig::RemoteDialogflowQueryParameters) — Optional. QueryParameters to send to the remote Dialogflow agent when the session control is transferred to the remote agent.
#remote_dialogflow_query_parameters=
def remote_dialogflow_query_parameters=(value) -> ::Google::Cloud::Ces::V1beta::SessionConfig::RemoteDialogflowQueryParameters- value (::Google::Cloud::Ces::V1beta::SessionConfig::RemoteDialogflowQueryParameters) — Optional. QueryParameters to send to the remote Dialogflow agent when the session control is transferred to the remote agent.
- (::Google::Cloud::Ces::V1beta::SessionConfig::RemoteDialogflowQueryParameters) — Optional. QueryParameters to send to the remote Dialogflow agent when the session control is transferred to the remote agent.
#session
def session() -> ::String-
(::String) — Required. The unique identifier of the session.
Format:
projects/{project}/locations/{location}/apps/{app}/sessions/{session}
#session=
def session=(value) -> ::String-
value (::String) — Required. The unique identifier of the session.
Format:
projects/{project}/locations/{location}/apps/{app}/sessions/{session}
-
(::String) — Required. The unique identifier of the session.
Format:
projects/{project}/locations/{location}/apps/{app}/sessions/{session}
#time_zone
def time_zone() -> ::String-
(::String) — Optional. The time zone of the user. If provided, the agent will use the
time zone for date and time related variables. Otherwise, the agent will
use the time zone specified in the App.time_zone_settings.
The format is the IANA Time Zone Database time zone, e.g. "America/Los_Angeles".
#time_zone=
def time_zone=(value) -> ::String-
value (::String) — Optional. The time zone of the user. If provided, the agent will use the
time zone for date and time related variables. Otherwise, the agent will
use the time zone specified in the App.time_zone_settings.
The format is the IANA Time Zone Database time zone, e.g. "America/Los_Angeles".
-
(::String) — Optional. The time zone of the user. If provided, the agent will use the
time zone for date and time related variables. Otherwise, the agent will
use the time zone specified in the App.time_zone_settings.
The format is the IANA Time Zone Database time zone, e.g. "America/Los_Angeles".
#use_tool_fakes
def use_tool_fakes() -> ::Boolean- (::Boolean) — Optional. Whether to use tool fakes for the session. If this field is set, the agent will attempt use tool fakes instead of calling the real tools.
#use_tool_fakes=
def use_tool_fakes=(value) -> ::Boolean- value (::Boolean) — Optional. Whether to use tool fakes for the session. If this field is set, the agent will attempt use tool fakes instead of calling the real tools.
- (::Boolean) — Optional. Whether to use tool fakes for the session. If this field is set, the agent will attempt use tool fakes instead of calling the real tools.