30
30
public final class GoogleCloudDiscoveryengineV1SessionTurn extends com .google .api .client .json .GenericJson {
31
31
32
32
/**
33
- * The resource name of the answer to the user query. Only set if the answer generation (/answer
34
- * API call) happened in this turn.
33
+ * Optional. The resource name of the answer to the user query. Only set if the answer generation
34
+ * (/answer API call) happened in this turn.
35
35
* The value may be {@code null}.
36
36
*/
37
37
@ com .google .api .client .util .Key
@@ -47,38 +47,25 @@ public final class GoogleCloudDiscoveryengineV1SessionTurn extends com.google.ap
47
47
private GoogleCloudDiscoveryengineV1Answer detailedAnswer ;
48
48
49
49
/**
50
- * The user query.
50
+ * Optional. The user query. May not be set if this turn is merely regenerating an answer to a
51
+ * different turn
51
52
* The value may be {@code null}.
52
53
*/
53
54
@ com .google .api .client .util .Key
54
55
private GoogleCloudDiscoveryengineV1Query query ;
55
56
56
57
/**
57
- * Optional. Represents metadata related to the query config, for example LLM model and version
58
- * used, model parameters (temperature, grounding parameters, etc.). We don't want to import
59
- * directly the [AnswerGenerationSpec] structure as this will serve a more general purpose and a
60
- * wider set of customers. This information is used in particular when rendering alternative
61
- * answers to the same prompt, providing visual information about how each answer was generated.
62
- * The prefix "google." will be reserved for the key, and 1P services (Answer, Assistant, etc.)
63
- * should always store their information with "google..". 3P services can use anything not
64
- * starting with "google."
65
- * The value may be {@code null}.
66
- */
67
- @ com .google .api .client .util .Key
68
- private java .util .Map <String , java .lang .String > queryConfigs ;
69
-
70
- /**
71
- * The resource name of the answer to the user query. Only set if the answer generation (/answer
72
- * API call) happened in this turn.
58
+ * Optional. The resource name of the answer to the user query. Only set if the answer generation
59
+ * (/answer API call) happened in this turn.
73
60
* @return value or {@code null} for none
74
61
*/
75
62
public java .lang .String getAnswer () {
76
63
return answer ;
77
64
}
78
65
79
66
/**
80
- * The resource name of the answer to the user query. Only set if the answer generation (/answer
81
- * API call) happened in this turn.
67
+ * Optional. The resource name of the answer to the user query. Only set if the answer generation
68
+ * (/answer API call) happened in this turn.
82
69
* @param answer answer or {@code null} for none
83
70
*/
84
71
public GoogleCloudDiscoveryengineV1SessionTurn setAnswer (java .lang .String answer ) {
@@ -108,53 +95,24 @@ public GoogleCloudDiscoveryengineV1SessionTurn setDetailedAnswer(GoogleCloudDisc
108
95
}
109
96
110
97
/**
111
- * The user query.
98
+ * Optional. The user query. May not be set if this turn is merely regenerating an answer to a
99
+ * different turn
112
100
* @return value or {@code null} for none
113
101
*/
114
102
public GoogleCloudDiscoveryengineV1Query getQuery () {
115
103
return query ;
116
104
}
117
105
118
106
/**
119
- * The user query.
107
+ * Optional. The user query. May not be set if this turn is merely regenerating an answer to a
108
+ * different turn
120
109
* @param query query or {@code null} for none
121
110
*/
122
111
public GoogleCloudDiscoveryengineV1SessionTurn setQuery (GoogleCloudDiscoveryengineV1Query query ) {
123
112
this .query = query ;
124
113
return this ;
125
114
}
126
115
127
- /**
128
- * Optional. Represents metadata related to the query config, for example LLM model and version
129
- * used, model parameters (temperature, grounding parameters, etc.). We don't want to import
130
- * directly the [AnswerGenerationSpec] structure as this will serve a more general purpose and a
131
- * wider set of customers. This information is used in particular when rendering alternative
132
- * answers to the same prompt, providing visual information about how each answer was generated.
133
- * The prefix "google." will be reserved for the key, and 1P services (Answer, Assistant, etc.)
134
- * should always store their information with "google..". 3P services can use anything not
135
- * starting with "google."
136
- * @return value or {@code null} for none
137
- */
138
- public java .util .Map <String , java .lang .String > getQueryConfigs () {
139
- return queryConfigs ;
140
- }
141
-
142
- /**
143
- * Optional. Represents metadata related to the query config, for example LLM model and version
144
- * used, model parameters (temperature, grounding parameters, etc.). We don't want to import
145
- * directly the [AnswerGenerationSpec] structure as this will serve a more general purpose and a
146
- * wider set of customers. This information is used in particular when rendering alternative
147
- * answers to the same prompt, providing visual information about how each answer was generated.
148
- * The prefix "google." will be reserved for the key, and 1P services (Answer, Assistant, etc.)
149
- * should always store their information with "google..". 3P services can use anything not
150
- * starting with "google."
151
- * @param queryConfigs queryConfigs or {@code null} for none
152
- */
153
- public GoogleCloudDiscoveryengineV1SessionTurn setQueryConfigs (java .util .Map <String , java .lang .String > queryConfigs ) {
154
- this .queryConfigs = queryConfigs ;
155
- return this ;
156
- }
157
-
158
116
@ Override
159
117
public GoogleCloudDiscoveryengineV1SessionTurn set (String fieldName , Object value ) {
160
118
return (GoogleCloudDiscoveryengineV1SessionTurn ) super .set (fieldName , value );
0 commit comments