Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSessionTurn
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaSessionTurn
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb
Overview
Represents a turn, including a query from the user and a answer from service.
Instance Attribute Summary collapse
-
#answer ⇒ String
The resource name of the answer to the user query.
-
#query ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQuery
Defines a user inputed query.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSessionTurn
constructor
A new instance of GoogleCloudDiscoveryengineV1betaSessionTurn.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaSessionTurn
Returns a new instance of GoogleCloudDiscoveryengineV1betaSessionTurn.
12773 12774 12775 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12773 def initialize(**args) update!(**args) end |
Instance Attribute Details
#answer ⇒ String
The resource name of the answer to the user query. Only set if the answer
generation (/answer API call) happened in this turn.
Corresponds to the JSON property answer
12766 12767 12768 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12766 def answer @answer end |
#query ⇒ Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaQuery
Defines a user inputed query.
Corresponds to the JSON property query
12771 12772 12773 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12771 def query @query end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
12778 12779 12780 12781 |
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 12778 def update!(**args) @answer = args[:answer] if args.key?(:answer) @query = args[:query] if args.key?(:query) end |