Discovery Engine v1beta API - Class StreamAssistResponse (1.0.0-beta24)

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

Reference documentation and code samples for the Discovery Engine v1beta API class StreamAssistResponse.

Response for the [AssistantService.StreamAssist][google.cloud.discoveryengine.v1beta.AssistantService.StreamAssist] method.

Inheritance

object > StreamAssistResponse

Namespace

Google.Cloud.DiscoveryEngine.V1Beta

Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

Constructors

StreamAssistResponse()

public StreamAssistResponse()

StreamAssistResponse(StreamAssistResponse)

public StreamAssistResponse(StreamAssistResponse other)
Parameter
Name Description
other StreamAssistResponse

Properties

Answer

public AssistAnswer Answer { get; set; }

Assist answer resource object containing parts of the assistant's final answer for the user's query.

Not present if the current response doesn't add anything to previously sent [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies].

Observe [AssistAnswer.state][google.cloud.discoveryengine.v1beta.AssistAnswer.state] to see if more parts are to be expected. While the state is IN_PROGRESS, the [AssistAnswer.replies][google.cloud.discoveryengine.v1beta.AssistAnswer.replies] field in each response will contain replies (reply fragments) to be appended to the ones received in previous responses. [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name] won't be filled.

If the state is SUCCEEDED, FAILED or SKIPPED, the response is the last response and [AssistAnswer.name][google.cloud.discoveryengine.v1beta.AssistAnswer.name] will have a value.

Property Value
Type Description
AssistAnswer

AssistToken

public string AssistToken { get; set; }

A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support.

Property Value
Type Description
string

InvocationTools

public RepeatedField<string> InvocationTools { get; }

The tool names of the tools that were invoked.

Property Value
Type Description
RepeatedFieldstring

InvokedSkills

public RepeatedField<StreamAssistResponse.Types.InvokedSkill> InvokedSkills { get; }

The skills executed during the turn.

Property Value
Type Description
RepeatedFieldStreamAssistResponseTypesInvokedSkill

SessionInfo

public StreamAssistResponse.Types.SessionInfo SessionInfo { get; set; }

Session information. Only included in the final StreamAssistResponse of the response stream.

Property Value
Type Description
StreamAssistResponseTypesSessionInfo