Class SessionConfig (0.7.4)

SessionConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The configuration for the session.

Attributes

Name Description
session str
Required. The unique identifier of the session. Format: projects/{project}/locations/{location}/apps/{app}/sessions/{session}
input_audio_config google.cloud.ces_v1beta.types.InputAudioConfig
Optional. Configuration for processing the input audio.
output_audio_config google.cloud.ces_v1beta.types.OutputAudioConfig
Optional. Configuration for generating the output audio.
historical_contexts MutableSequence[google.cloud.ces_v1beta.types.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.
entry_agent str
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}
deployment str
Optional. The deployment of the app to use for the session. Format: projects/{project}/locations/{location}/apps/{app}/deployments/{deployment}
time_zone str
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 bool
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.
remote_dialogflow_query_parameters google.cloud.ces_v1beta.types.SessionConfig.RemoteDialogflowQueryParameters
Optional. QueryParameters __ to send to the remote Dialogflow __ agent when the session control is transferred to the remote agent.
enable_text_streaming bool
Optional. Whether to stream text output from the model to the client incrementally as it is generated. Defaults to false. - When disabled, the model's text output is buffered, and each text output sent to the client is a complete sentence. Clients can render each text output on a new line. - When enabled, each text output may contain only part of a sentence. Clients should concatenate consecutive text outputs to render the complete response. NOTE: This is only supported for text (non-voice) sessions using StreamRunSession or BidiRunSession.
include_llm_thought_summary bool
Optional. Whether to include LLM thought summaries in the session outputs.
exclude_diagnostic_info bool
Optional. Whether to exclude diagnostic info from the session output.
include_progress_update bool
Optional. Whether to include intermediate processing update to the client. If enabled, the update will be sent back in SessionOutput.progress.

Classes

RemoteDialogflowQueryParameters

RemoteDialogflowQueryParameters(
    mapping=None, *, ignore_unknown_fields=False, **kwargs
)

QueryParameters <https://cloud.google.com/dialogflow/cx/docs/reference/rpc/google.cloud.dialogflow.cx.v3#queryparameters> to send to the remote Dialogflow <https://cloud.google.com/dialogflow/cx/docs/concept/console-conversational-agents> agent when the session control is transferred to the remote agent.