@@ -25,6 +25,7 @@ class CreateRunClusteringJobRequest
2525@JsonCreator(mode = JsonCreator .Mode .DISABLED )
2626private constructor (
2727 private val attributeSchemas: JsonField <AttributeSchemas >,
28+ private val clusterModel: JsonField <String >,
2829 private val configId: JsonField <String >,
2930 private val endTime: JsonField <OffsetDateTime >,
3031 private val filter: JsonField <String >,
@@ -35,6 +36,7 @@ private constructor(
3536 private val partitions: JsonField <Partitions >,
3637 private val sample: JsonField <Double >,
3738 private val startTime: JsonField <OffsetDateTime >,
39+ private val summaryModel: JsonField <String >,
3840 private val summaryPrompt: JsonField <String >,
3941 private val userContext: JsonField <UserContext >,
4042 private val validateModelSecrets: JsonField <Boolean >,
@@ -46,6 +48,9 @@ private constructor(
4648 @JsonProperty(" attribute_schemas" )
4749 @ExcludeMissing
4850 attributeSchemas: JsonField <AttributeSchemas > = JsonMissing .of(),
51+ @JsonProperty(" cluster_model" )
52+ @ExcludeMissing
53+ clusterModel: JsonField <String > = JsonMissing .of(),
4954 @JsonProperty(" config_id" ) @ExcludeMissing configId: JsonField <String > = JsonMissing .of(),
5055 @JsonProperty(" end_time" )
5156 @ExcludeMissing
@@ -66,6 +71,9 @@ private constructor(
6671 @JsonProperty(" start_time" )
6772 @ExcludeMissing
6873 startTime: JsonField <OffsetDateTime > = JsonMissing .of(),
74+ @JsonProperty(" summary_model" )
75+ @ExcludeMissing
76+ summaryModel: JsonField <String > = JsonMissing .of(),
6977 @JsonProperty(" summary_prompt" )
7078 @ExcludeMissing
7179 summaryPrompt: JsonField <String > = JsonMissing .of(),
@@ -77,6 +85,7 @@ private constructor(
7785 validateModelSecrets: JsonField <Boolean > = JsonMissing .of(),
7886 ) : this (
7987 attributeSchemas,
88+ clusterModel,
8089 configId,
8190 endTime,
8291 filter,
@@ -87,6 +96,7 @@ private constructor(
8796 partitions,
8897 sample,
8998 startTime,
99+ summaryModel,
90100 summaryPrompt,
91101 userContext,
92102 validateModelSecrets,
@@ -100,6 +110,12 @@ private constructor(
100110 fun attributeSchemas (): Optional <AttributeSchemas > =
101111 attributeSchemas.getOptional(" attribute_schemas" )
102112
113+ /* *
114+ * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
115+ * server responded with an unexpected value).
116+ */
117+ fun clusterModel (): Optional <String > = clusterModel.getOptional(" cluster_model" )
118+
103119 /* *
104120 * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
105121 * server responded with an unexpected value).
@@ -160,6 +176,12 @@ private constructor(
160176 */
161177 fun startTime (): Optional <OffsetDateTime > = startTime.getOptional(" start_time" )
162178
179+ /* *
180+ * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
181+ * server responded with an unexpected value).
182+ */
183+ fun summaryModel (): Optional <String > = summaryModel.getOptional(" summary_model" )
184+
163185 /* *
164186 * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
165187 * server responded with an unexpected value).
@@ -189,6 +211,15 @@ private constructor(
189211 @ExcludeMissing
190212 fun _attributeSchemas (): JsonField <AttributeSchemas > = attributeSchemas
191213
214+ /* *
215+ * Returns the raw JSON value of [clusterModel].
216+ *
217+ * Unlike [clusterModel], this method doesn't throw if the JSON field has an unexpected type.
218+ */
219+ @JsonProperty(" cluster_model" )
220+ @ExcludeMissing
221+ fun _clusterModel (): JsonField <String > = clusterModel
222+
192223 /* *
193224 * Returns the raw JSON value of [configId].
194225 *
@@ -263,6 +294,15 @@ private constructor(
263294 @ExcludeMissing
264295 fun _startTime (): JsonField <OffsetDateTime > = startTime
265296
297+ /* *
298+ * Returns the raw JSON value of [summaryModel].
299+ *
300+ * Unlike [summaryModel], this method doesn't throw if the JSON field has an unexpected type.
301+ */
302+ @JsonProperty(" summary_model" )
303+ @ExcludeMissing
304+ fun _summaryModel (): JsonField <String > = summaryModel
305+
266306 /* *
267307 * Returns the raw JSON value of [summaryPrompt].
268308 *
@@ -316,6 +356,7 @@ private constructor(
316356 class Builder internal constructor() {
317357
318358 private var attributeSchemas: JsonField <AttributeSchemas > = JsonMissing .of()
359+ private var clusterModel: JsonField <String > = JsonMissing .of()
319360 private var configId: JsonField <String > = JsonMissing .of()
320361 private var endTime: JsonField <OffsetDateTime > = JsonMissing .of()
321362 private var filter: JsonField <String > = JsonMissing .of()
@@ -326,6 +367,7 @@ private constructor(
326367 private var partitions: JsonField <Partitions > = JsonMissing .of()
327368 private var sample: JsonField <Double > = JsonMissing .of()
328369 private var startTime: JsonField <OffsetDateTime > = JsonMissing .of()
370+ private var summaryModel: JsonField <String > = JsonMissing .of()
329371 private var summaryPrompt: JsonField <String > = JsonMissing .of()
330372 private var userContext: JsonField <UserContext > = JsonMissing .of()
331373 private var validateModelSecrets: JsonField <Boolean > = JsonMissing .of()
@@ -334,6 +376,7 @@ private constructor(
334376 @JvmSynthetic
335377 internal fun from (createRunClusteringJobRequest : CreateRunClusteringJobRequest ) = apply {
336378 attributeSchemas = createRunClusteringJobRequest.attributeSchemas
379+ clusterModel = createRunClusteringJobRequest.clusterModel
337380 configId = createRunClusteringJobRequest.configId
338381 endTime = createRunClusteringJobRequest.endTime
339382 filter = createRunClusteringJobRequest.filter
@@ -344,6 +387,7 @@ private constructor(
344387 partitions = createRunClusteringJobRequest.partitions
345388 sample = createRunClusteringJobRequest.sample
346389 startTime = createRunClusteringJobRequest.startTime
390+ summaryModel = createRunClusteringJobRequest.summaryModel
347391 summaryPrompt = createRunClusteringJobRequest.summaryPrompt
348392 userContext = createRunClusteringJobRequest.userContext
349393 validateModelSecrets = createRunClusteringJobRequest.validateModelSecrets
@@ -368,6 +412,22 @@ private constructor(
368412 this .attributeSchemas = attributeSchemas
369413 }
370414
415+ fun clusterModel (clusterModel : String? ) = clusterModel(JsonField .ofNullable(clusterModel))
416+
417+ /* * Alias for calling [Builder.clusterModel] with `clusterModel.orElse(null)`. */
418+ fun clusterModel (clusterModel : Optional <String >) = clusterModel(clusterModel.getOrNull())
419+
420+ /* *
421+ * Sets [Builder.clusterModel] to an arbitrary JSON value.
422+ *
423+ * You should usually call [Builder.clusterModel] with a well-typed [String] value instead.
424+ * This method is primarily for setting the field to an undocumented or not yet supported
425+ * value.
426+ */
427+ fun clusterModel (clusterModel : JsonField <String >) = apply {
428+ this .clusterModel = clusterModel
429+ }
430+
371431 fun configId (configId : String? ) = configId(JsonField .ofNullable(configId))
372432
373433 /* * Alias for calling [Builder.configId] with `configId.orElse(null)`. */
@@ -527,6 +587,22 @@ private constructor(
527587 */
528588 fun startTime (startTime : JsonField <OffsetDateTime >) = apply { this .startTime = startTime }
529589
590+ fun summaryModel (summaryModel : String? ) = summaryModel(JsonField .ofNullable(summaryModel))
591+
592+ /* * Alias for calling [Builder.summaryModel] with `summaryModel.orElse(null)`. */
593+ fun summaryModel (summaryModel : Optional <String >) = summaryModel(summaryModel.getOrNull())
594+
595+ /* *
596+ * Sets [Builder.summaryModel] to an arbitrary JSON value.
597+ *
598+ * You should usually call [Builder.summaryModel] with a well-typed [String] value instead.
599+ * This method is primarily for setting the field to an undocumented or not yet supported
600+ * value.
601+ */
602+ fun summaryModel (summaryModel : JsonField <String >) = apply {
603+ this .summaryModel = summaryModel
604+ }
605+
530606 fun summaryPrompt (summaryPrompt : String? ) =
531607 summaryPrompt(JsonField .ofNullable(summaryPrompt))
532608
@@ -602,6 +678,7 @@ private constructor(
602678 fun build (): CreateRunClusteringJobRequest =
603679 CreateRunClusteringJobRequest (
604680 attributeSchemas,
681+ clusterModel,
605682 configId,
606683 endTime,
607684 filter,
@@ -612,6 +689,7 @@ private constructor(
612689 partitions,
613690 sample,
614691 startTime,
692+ summaryModel,
615693 summaryPrompt,
616694 userContext,
617695 validateModelSecrets,
@@ -627,6 +705,7 @@ private constructor(
627705 }
628706
629707 attributeSchemas().ifPresent { it.validate() }
708+ clusterModel()
630709 configId()
631710 endTime()
632711 filter()
@@ -637,6 +716,7 @@ private constructor(
637716 partitions().ifPresent { it.validate() }
638717 sample()
639718 startTime()
719+ summaryModel()
640720 summaryPrompt()
641721 userContext().ifPresent { it.validate() }
642722 validateModelSecrets()
@@ -659,6 +739,7 @@ private constructor(
659739 @JvmSynthetic
660740 internal fun validity (): Int =
661741 (attributeSchemas.asKnown().getOrNull()?.validity() ? : 0 ) +
742+ (if (clusterModel.asKnown().isPresent) 1 else 0 ) +
662743 (if (configId.asKnown().isPresent) 1 else 0 ) +
663744 (if (endTime.asKnown().isPresent) 1 else 0 ) +
664745 (if (filter.asKnown().isPresent) 1 else 0 ) +
@@ -669,6 +750,7 @@ private constructor(
669750 (partitions.asKnown().getOrNull()?.validity() ? : 0 ) +
670751 (if (sample.asKnown().isPresent) 1 else 0 ) +
671752 (if (startTime.asKnown().isPresent) 1 else 0 ) +
753+ (if (summaryModel.asKnown().isPresent) 1 else 0 ) +
672754 (if (summaryPrompt.asKnown().isPresent) 1 else 0 ) +
673755 (userContext.asKnown().getOrNull()?.validity() ? : 0 ) +
674756 (if (validateModelSecrets.asKnown().isPresent) 1 else 0 )
@@ -1104,6 +1186,7 @@ private constructor(
11041186
11051187 return other is CreateRunClusteringJobRequest &&
11061188 attributeSchemas == other.attributeSchemas &&
1189+ clusterModel == other.clusterModel &&
11071190 configId == other.configId &&
11081191 endTime == other.endTime &&
11091192 filter == other.filter &&
@@ -1114,6 +1197,7 @@ private constructor(
11141197 partitions == other.partitions &&
11151198 sample == other.sample &&
11161199 startTime == other.startTime &&
1200+ summaryModel == other.summaryModel &&
11171201 summaryPrompt == other.summaryPrompt &&
11181202 userContext == other.userContext &&
11191203 validateModelSecrets == other.validateModelSecrets &&
@@ -1123,6 +1207,7 @@ private constructor(
11231207 private val hashCode: Int by lazy {
11241208 Objects .hash(
11251209 attributeSchemas,
1210+ clusterModel,
11261211 configId,
11271212 endTime,
11281213 filter,
@@ -1133,6 +1218,7 @@ private constructor(
11331218 partitions,
11341219 sample,
11351220 startTime,
1221+ summaryModel,
11361222 summaryPrompt,
11371223 userContext,
11381224 validateModelSecrets,
@@ -1143,5 +1229,5 @@ private constructor(
11431229 override fun hashCode (): Int = hashCode
11441230
11451231 override fun toString () =
1146- " CreateRunClusteringJobRequest{attributeSchemas=$attributeSchemas , configId=$configId , endTime=$endTime , filter=$filter , hierarchy=$hierarchy , lastNHours=$lastNHours , model=$model , name=$name , partitions=$partitions , sample=$sample , startTime=$startTime , summaryPrompt=$summaryPrompt , userContext=$userContext , validateModelSecrets=$validateModelSecrets , additionalProperties=$additionalProperties }"
1232+ " CreateRunClusteringJobRequest{attributeSchemas=$attributeSchemas , clusterModel= $clusterModel , configId=$configId , endTime=$endTime , filter=$filter , hierarchy=$hierarchy , lastNHours=$lastNHours , model=$model , name=$name , partitions=$partitions , sample=$sample , startTime=$startTime , summaryModel= $summaryModel , summaryPrompt=$summaryPrompt , userContext=$userContext , validateModelSecrets=$validateModelSecrets , additionalProperties=$additionalProperties }"
11471233}
0 commit comments