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

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

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

Output for the session.

Inheritance

object > SessionOutput

Namespace

Google.Cloud.Ces.V1

Assembly

Google.Cloud.Ces.V1.dll

Constructors

SessionOutput()

public SessionOutput()

SessionOutput(SessionOutput)

public SessionOutput(SessionOutput other)
Parameter
Name Description
other SessionOutput

Properties

Audio

public ByteString Audio { get; set; }

Output audio from the CES agent.

Property Value
Type Description
ByteString

Citations

public Citations Citations { get; set; }

Citations that provide the source information for the agent's generated text.

Property Value
Type Description
Citations

DiagnosticInfo

public SessionOutput.Types.DiagnosticInfo DiagnosticInfo { get; set; }

Optional. Diagnostic information contains execution details during the processing of the input. Only populated in the last SessionOutput (with turn_completed=true) for each turn.

Property Value
Type Description
SessionOutputTypesDiagnosticInfo

EndSession

public EndSession EndSession { get; set; }

Indicates the session has ended.

Property Value
Type Description
EndSession

GoogleSearchSuggestions

public GoogleSearchSuggestions GoogleSearchSuggestions { get; set; }

The suggestions returned from Google Search as a result of invoking the [GoogleSearchTool][google.cloud.ces.v1.GoogleSearchTool].

Property Value
Type Description
GoogleSearchSuggestions

HasAudio

public bool HasAudio { get; }

Gets whether the "audio" 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

OutputTypeCase

public SessionOutput.OutputTypeOneofCase OutputTypeCase { get; }
Property Value
Type Description
SessionOutputOutputTypeOneofCase

Payload

public Struct Payload { get; set; }

Custom payload with structured output from the CES agent.

Property Value
Type Description
Struct

Text

public string Text { get; set; }

Output text from the CES agent.

Property Value
Type Description
string

ToolCalls

public ToolCalls ToolCalls { get; set; }

Request for the client to execute the tools.

Property Value
Type Description
ToolCalls

TurnCompleted

public bool TurnCompleted { get; set; }

If true, the CES agent has detected the end of the current conversation turn and will provide no further output for this turn.

Property Value
Type Description
bool

TurnIndex

public int TurnIndex { get; set; }

Indicates the sequential order of conversation turn to which this output belongs to, starting from 1.

Property Value
Type Description
int