0.20.1 (latest) 0.20.0 0.19.0 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.12 0.12.3 0.11.14 0.10.0 0.9.1 0.8.1 0.7.0 0.6.0 0.5.0 0.4.1 0.3.1 0.2.1 0.1.1

    StreamAssistResponse(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Response for the
AssistantService.StreamAssist
method.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `answer` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1.types.AssistAnswer` 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. Observe AssistAnswer.state to see if more parts are to be expected. While the state is `IN_PROGRESS`, the 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. |
| `session_info` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1.types.StreamAssistResponse.SessionInfo` Session information. |
| `assist_token` | `str` A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support. |

## Classes

### SessionInfo

    SessionInfo(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Information about the session.