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

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

Request for the
AssistantService.StreamAssist
method.

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `name` | `str` Required. The resource name of the Assistant. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}` |
| `query` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.Query` Optional. Current user query. Empty query is only supported if `file_ids` are provided. In this case, the answer will be generated based on those context files. |
| `session` | `str` Optional. The session to use for the request. If specified, the assistant has access to the session history, and the query and the answer are stored there. If `-` is specified as the session ID, or it is left empty, then a new session is created with an automatically generated ID. Format: `projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/sessions/{session}` |
| `user_metadata` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.AssistUserMetadata` Optional. Information about the user initiating the query. |
| `tools_spec` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.StreamAssistRequest.ToolsSpec` Optional. Specification of tools that are used to serve the request. |
| `generation_spec` | `https://docs.cloud.google.com/python/docs/reference/discoveryengine/latest/google.cloud.discoveryengine_v1beta.types.StreamAssistRequest.GenerationSpec` Optional. Specification of the generation configuration for the request. |

## Classes

### GenerationSpec

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

Assistant generation specification for the request.
This allows to override the default generation configuration at
the engine level.

### ToolsSpec

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

Specification of tools that are used to serve the request.