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 |
google.cloud.discoveryengine_v1.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 |
google.cloud.discoveryengine_v1.types.AssistUserMetadata
Optional. Information about the user initiating the query. |
tools_spec |
google.cloud.discoveryengine_v1.types.StreamAssistRequest.ToolsSpec
Optional. Specification of tools that are used to serve the request. |
generation_spec |
google.cloud.discoveryengine_v1.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.