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_v1beta.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_v1beta.types.StreamAssistResponse.SessionInfo` Session information. Only included in the final StreamAssistResponse of the response stream. |
| `assist_token` | `str` A global unique ID that identifies the current pair of request and stream of responses. Used for feedback and support. |
| `invocation_tools` | `MutableSequence[str]` The tool names of the tools that were invoked. |
| `invoked_skills` | `MutableSequence[https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.StreamAssistResponse.InvokedSkill]` The skills executed during the turn. |

## Classes

### InvokedSkill

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

Represents a skill used during the assist call.

### SessionInfo

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

Information about the session.