1.0.0-beta25 (latest) 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](https://learn.microsoft.com/dotnet/api/system.object) \> StreamAssistResponse

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[StreamAssistResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistResponse), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[StreamAssistResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistResponse), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[StreamAssistResponse](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistResponse), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.DiscoveryEngine.V1Beta](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta)

## Assembly

Google.Cloud.DiscoveryEngine.V1Beta.dll

## Constructors

### StreamAssistResponse()

    public StreamAssistResponse()

### StreamAssistResponse(StreamAssistResponse)

    public StreamAssistResponse(StreamAssistResponse other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.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** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### InvocationTools

    public RepeatedField<string> InvocationTools { get; }

The tool names of the tools that were invoked.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### InvokedSkills

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

The skills executed during the turn.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistResponse.Types.InvokedSkill` |   |

### SessionInfo

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

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

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistResponsehttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistResponse.Typeshttps://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.DiscoveryEngine.V1Beta/latest/Google.Cloud.DiscoveryEngine.V1Beta.StreamAssistResponse.Types.SessionInfo` |   |