Gemini Enterprise for Customer Experience v1 API - Class SessionInput (1.0.0-beta01)

public sealed class SessionInput : IMessage<SessionInput>, IEquatable<SessionInput>, IDeepCloneable<SessionInput>, IBufferMessage, IMessage

Reference documentation and code samples for the Gemini Enterprise for Customer Experience v1 API class SessionInput.

Input for the session.

Inheritance

object > SessionInput

Namespace

Google.Cloud.Ces.V1

Assembly

Google.Cloud.Ces.V1.dll

Constructors

SessionInput()

public SessionInput()

SessionInput(SessionInput)

public SessionInput(SessionInput other)
Parameter
Name Description
other SessionInput

Properties

Audio

public ByteString Audio { get; set; }

Optional. Audio data from the end user.

Property Value
Type Description
ByteString

Blob

public Blob Blob { get; set; }

Optional. Blob data from the end user.

Property Value
Type Description
Blob

Dtmf

public string Dtmf { get; set; }

Optional. DTMF digits from the end user.

Property Value
Type Description
string

Event

public Event Event { get; set; }

Optional. Event input.

Property Value
Type Description
Event

HasAudio

public bool HasAudio { get; }

Gets whether the "audio" field is set

Property Value
Type Description
bool

HasDtmf

public bool HasDtmf { get; }

Gets whether the "dtmf" field is set

Property Value
Type Description
bool

HasText

public bool HasText { get; }

Gets whether the "text" field is set

Property Value
Type Description
bool

Image

public Image Image { get; set; }

Optional. Image data from the end user.

Property Value
Type Description
Image

InputTypeCase

public SessionInput.InputTypeOneofCase InputTypeCase { get; }
Property Value
Type Description
SessionInputInputTypeOneofCase

Text

public string Text { get; set; }

Optional. Text data from the end user.

Property Value
Type Description
string

ToolResponses

public ToolResponses ToolResponses { get; set; }

Optional. Execution results for the tool calls from the client.

Property Value
Type Description
ToolResponses

Variables

public Struct Variables { get; set; }

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.

Property Value
Type Description
Struct

WillContinue

public bool WillContinue { get; set; }

Optional. A flag to indicate if the current message is a fragment of a larger input in the bidi streaming session. When true, the agent will defer processing until a subsequent message with will_continue set to false is received.

Note: This flag has no effect on audio and DTMF inputs, which are always processed in real-time.

Property Value
Type Description
bool