public sealed class StreamAssistResponse : IMessage<StreamAssistResponse>, IEquatable<StreamAssistResponse>, IDeepCloneable<StreamAssistResponse>, IBufferMessage, IMessageReference documentation and code samples for the Discovery Engine v1 API class StreamAssistResponse.
Response for the [AssistantService.StreamAssist][google.cloud.discoveryengine.v1.AssistantService.StreamAssist] method.
Implements
IMessageStreamAssistResponse, IEquatableStreamAssistResponse, IDeepCloneableStreamAssistResponse, IBufferMessage, IMessageNamespace
Google.Cloud.DiscoveryEngine.V1Assembly
Google.Cloud.DiscoveryEngine.V1.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.v1.AssistAnswer.replies].
Observe
[AssistAnswer.state][google.cloud.discoveryengine.v1.AssistAnswer.state] to
see if more parts are to be expected. While the state is IN_PROGRESS, the
[AssistAnswer.replies][google.cloud.discoveryengine.v1.AssistAnswer.replies]
field in each response will contain replies (reply fragments) to be
appended to the ones received in previous responses. [AssistAnswer.name][]
won't be filled.
If the state is SUCCEEDED, FAILED or SKIPPED, the response
is the last response and [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 |
|
SessionInfo
public StreamAssistResponse.Types.SessionInfo SessionInfo { get; set; }Session information.
| Property Value | |
|---|---|
| Type | Description |
StreamAssistResponseTypesSessionInfo |
|