Discovery Engine V1BETA API - Class Google::Cloud::DiscoveryEngine::V1beta::StreamAssistRequest (v0.28.0)

Reference documentation and code samples for the Discovery Engine V1BETA API class Google::Cloud::DiscoveryEngine::V1beta::StreamAssistRequest.

Request for the AssistantService.StreamAssist method.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#generation_spec

def generation_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::StreamAssistRequest::GenerationSpec
Returns

#generation_spec=

def generation_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::StreamAssistRequest::GenerationSpec
Parameter
Returns

#name

def name() -> ::String
Returns
  • (::String) — Required. The resource name of the Assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

#name=

def name=(value) -> ::String
Parameter
  • value (::String) — Required. The resource name of the Assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}
Returns
  • (::String) — Required. The resource name of the Assistant. Format: projects/{project}/locations/{location}/collections/{collection}/engines/{engine}/assistants/{assistant}

#query

def query() -> ::Google::Cloud::DiscoveryEngine::V1beta::Query
Returns

#query=

def query=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::Query
Parameter
Returns

#session

def session() -> ::String
Returns
  • (::String) — 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}

#session=

def session=(value) -> ::String
Parameter
  • value (::String) — 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}

Returns
  • (::String) — 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}

#tools_spec

def tools_spec() -> ::Google::Cloud::DiscoveryEngine::V1beta::StreamAssistRequest::ToolsSpec
Returns

#tools_spec=

def tools_spec=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::StreamAssistRequest::ToolsSpec
Parameter
Returns

#user_metadata

def user_metadata() -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistUserMetadata
Returns

#user_metadata=

def user_metadata=(value) -> ::Google::Cloud::DiscoveryEngine::V1beta::AssistUserMetadata
Parameter
Returns