@@ -44,6 +44,7 @@ private constructor(
4444 private val feedbackGroupId: JsonField <String >,
4545 private val feedbackSource: JsonField <FeedbackSource >,
4646 private val feedbackThreadId: JsonField <String >,
47+ private val isRoot: JsonField <Boolean >,
4748 private val modifiedAt: JsonField <OffsetDateTime >,
4849 private val runId: JsonField <String >,
4950 private val score: JsonField <Score >,
@@ -78,6 +79,7 @@ private constructor(
7879 @JsonProperty(" feedback_thread_id" )
7980 @ExcludeMissing
8081 feedbackThreadId: JsonField <String > = JsonMissing .of(),
82+ @JsonProperty(" is_root" ) @ExcludeMissing isRoot: JsonField <Boolean > = JsonMissing .of(),
8183 @JsonProperty(" modified_at" )
8284 @ExcludeMissing
8385 modifiedAt: JsonField <OffsetDateTime > = JsonMissing .of(),
@@ -100,6 +102,7 @@ private constructor(
100102 feedbackGroupId,
101103 feedbackSource,
102104 feedbackThreadId,
105+ isRoot,
103106 modifiedAt,
104107 runId,
105108 score,
@@ -173,6 +176,12 @@ private constructor(
173176 */
174177 fun feedbackThreadId (): Optional <String > = feedbackThreadId.getOptional(" feedback_thread_id" )
175178
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 isRoot (): Optional <Boolean > = isRoot.getOptional(" is_root" )
184+
176185 /* *
177186 * @throws LangChainInvalidDataException if the JSON field has an unexpected type (e.g. if the
178187 * server responded with an unexpected value).
@@ -299,6 +308,13 @@ private constructor(
299308 @ExcludeMissing
300309 fun _feedbackThreadId (): JsonField <String > = feedbackThreadId
301310
311+ /* *
312+ * Returns the raw JSON value of [isRoot].
313+ *
314+ * Unlike [isRoot], this method doesn't throw if the JSON field has an unexpected type.
315+ */
316+ @JsonProperty(" is_root" ) @ExcludeMissing fun _isRoot (): JsonField <Boolean > = isRoot
317+
302318 /* *
303319 * Returns the raw JSON value of [modifiedAt].
304320 *
@@ -391,6 +407,7 @@ private constructor(
391407 private var feedbackGroupId: JsonField <String > = JsonMissing .of()
392408 private var feedbackSource: JsonField <FeedbackSource > = JsonMissing .of()
393409 private var feedbackThreadId: JsonField <String > = JsonMissing .of()
410+ private var isRoot: JsonField <Boolean > = JsonMissing .of()
394411 private var modifiedAt: JsonField <OffsetDateTime > = JsonMissing .of()
395412 private var runId: JsonField <String > = JsonMissing .of()
396413 private var score: JsonField <Score > = JsonMissing .of()
@@ -412,6 +429,7 @@ private constructor(
412429 feedbackGroupId = feedbackSchema.feedbackGroupId
413430 feedbackSource = feedbackSchema.feedbackSource
414431 feedbackThreadId = feedbackSchema.feedbackThreadId
432+ isRoot = feedbackSchema.isRoot
415433 modifiedAt = feedbackSchema.modifiedAt
416434 runId = feedbackSchema.runId
417435 score = feedbackSchema.score
@@ -576,6 +594,16 @@ private constructor(
576594 this .feedbackThreadId = feedbackThreadId
577595 }
578596
597+ fun isRoot (isRoot : Boolean ) = isRoot(JsonField .of(isRoot))
598+
599+ /* *
600+ * Sets [Builder.isRoot] to an arbitrary JSON value.
601+ *
602+ * You should usually call [Builder.isRoot] with a well-typed [Boolean] value instead. This
603+ * method is primarily for setting the field to an undocumented or not yet supported value.
604+ */
605+ fun isRoot (isRoot : JsonField <Boolean >) = apply { this .isRoot = isRoot }
606+
579607 fun modifiedAt (modifiedAt : OffsetDateTime ) = modifiedAt(JsonField .of(modifiedAt))
580608
581609 /* *
@@ -731,6 +759,7 @@ private constructor(
731759 feedbackGroupId,
732760 feedbackSource,
733761 feedbackThreadId,
762+ isRoot,
734763 modifiedAt,
735764 runId,
736765 score,
@@ -759,6 +788,7 @@ private constructor(
759788 feedbackGroupId()
760789 feedbackSource().ifPresent { it.validate() }
761790 feedbackThreadId()
791+ isRoot()
762792 modifiedAt()
763793 runId()
764794 score().ifPresent { it.validate() }
@@ -794,6 +824,7 @@ private constructor(
794824 (if (feedbackGroupId.asKnown().isPresent) 1 else 0 ) +
795825 (feedbackSource.asKnown().getOrNull()?.validity() ? : 0 ) +
796826 (if (feedbackThreadId.asKnown().isPresent) 1 else 0 ) +
827+ (if (isRoot.asKnown().isPresent) 1 else 0 ) +
797828 (if (modifiedAt.asKnown().isPresent) 1 else 0 ) +
798829 (if (runId.asKnown().isPresent) 1 else 0 ) +
799830 (score.asKnown().getOrNull()?.validity() ? : 0 ) +
@@ -2078,6 +2109,7 @@ private constructor(
20782109 feedbackGroupId == other.feedbackGroupId &&
20792110 feedbackSource == other.feedbackSource &&
20802111 feedbackThreadId == other.feedbackThreadId &&
2112+ isRoot == other.isRoot &&
20812113 modifiedAt == other.modifiedAt &&
20822114 runId == other.runId &&
20832115 score == other.score &&
@@ -2100,6 +2132,7 @@ private constructor(
21002132 feedbackGroupId,
21012133 feedbackSource,
21022134 feedbackThreadId,
2135+ isRoot,
21032136 modifiedAt,
21042137 runId,
21052138 score,
@@ -2114,5 +2147,5 @@ private constructor(
21142147 override fun hashCode (): Int = hashCode
21152148
21162149 override fun toString () =
2117- " FeedbackSchema{id=$id , key=$key , comment=$comment , comparativeExperimentId=$comparativeExperimentId , correction=$correction , createdAt=$createdAt , extra=$extra , feedbackGroupId=$feedbackGroupId , feedbackSource=$feedbackSource , feedbackThreadId=$feedbackThreadId , modifiedAt=$modifiedAt , runId=$runId , score=$score , sessionId=$sessionId , startTime=$startTime , traceId=$traceId , value=$value , additionalProperties=$additionalProperties }"
2150+ " FeedbackSchema{id=$id , key=$key , comment=$comment , comparativeExperimentId=$comparativeExperimentId , correction=$correction , createdAt=$createdAt , extra=$extra , feedbackGroupId=$feedbackGroupId , feedbackSource=$feedbackSource , feedbackThreadId=$feedbackThreadId , isRoot= $isRoot , modifiedAt=$modifiedAt , runId=$runId , score=$score , sessionId=$sessionId , startTime=$startTime , traceId=$traceId , value=$value , additionalProperties=$additionalProperties }"
21182151}
0 commit comments