Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::Session::Turn.
Represents a turn, including a query from the user and a answer from service.
Inherits
- Object
 
Extended By
- Google::Protobuf::MessageExts::ClassMethods
 
Includes
- Google::Protobuf::MessageExts
 
Methods
#answer
def answer() -> ::String- 
        (::String) — Optional. The resource name of the answer to the user query.
Only set if the answer generation (/answer API call) happened in this turn.
 
#answer=
def answer=(value) -> ::String- 
        value (::String) — Optional. The resource name of the answer to the user query.
Only set if the answer generation (/answer API call) happened in this turn.
 
- 
        (::String) — Optional. The resource name of the answer to the user query.
Only set if the answer generation (/answer API call) happened in this turn.
 
#detailed_answer
def detailed_answer() -> ::Google::Cloud::DiscoveryEngine::V1::Answer- (::Google::Cloud::DiscoveryEngine::V1::Answer) — Output only. In ConversationalSearchService.GetSession API, if GetSessionRequest.include_answer_details is set to true, this field will be populated when getting answer query session.
 
#query
def query() -> ::Google::Cloud::DiscoveryEngine::V1::Query- (::Google::Cloud::DiscoveryEngine::V1::Query) — Optional. The user query. May not be set if this turn is merely regenerating an answer to a different turn
 
#query=
def query=(value) -> ::Google::Cloud::DiscoveryEngine::V1::Query- value (::Google::Cloud::DiscoveryEngine::V1::Query) — Optional. The user query. May not be set if this turn is merely regenerating an answer to a different turn
 
- (::Google::Cloud::DiscoveryEngine::V1::Query) — Optional. The user query. May not be set if this turn is merely regenerating an answer to a different turn
 
#query_config
def query_config() -> ::Google::Protobuf::Map{::String => ::String}- (::Google::Protobuf::Map{::String => ::String}) — Optional. Represents metadata related to the query config, for example LLM model and version used, model parameters (temperature, grounding parameters, etc.). The prefix "google." is reserved for Google-developed functionality.
 
#query_config=
def query_config=(value) -> ::Google::Protobuf::Map{::String => ::String}- value (::Google::Protobuf::Map{::String => ::String}) — Optional. Represents metadata related to the query config, for example LLM model and version used, model parameters (temperature, grounding parameters, etc.). The prefix "google." is reserved for Google-developed functionality.
 
- (::Google::Protobuf::Map{::String => ::String}) — Optional. Represents metadata related to the query config, for example LLM model and version used, model parameters (temperature, grounding parameters, etc.). The prefix "google." is reserved for Google-developed functionality.