diff --git a/.generator/schemas/v2/openapi.yaml b/.generator/schemas/v2/openapi.yaml index dd229dc55f7..953f1ff2a95 100644 --- a/.generator/schemas/v2/openapi.yaml +++ b/.generator/schemas/v2/openapi.yaml @@ -37856,16 +37856,28 @@ components: description: Identifier of the content for this interaction. example: "trace-abc-123" type: string + created_at: + description: Timestamp when the interaction was added to the queue. + example: "2024-01-15T10:30:00Z" + format: date-time + type: string id: description: Unique identifier of the interaction. example: "interaction-456" type: string + modified_at: + description: Timestamp when the interaction was last updated. + example: "2024-01-15T10:30:00Z" + format: date-time + type: string type: $ref: "#/components/schemas/LLMObsInteractionType" required: - id - type - content_id + - created_at + - modified_at - annotations type: object LLMObsAnnotatedInteractionsDataAttributesResponse: @@ -38072,10 +38084,20 @@ components: description: Identifier of the content for this interaction. example: "trace-abc-123" type: string + created_at: + description: Timestamp when the interaction was added to the queue. + example: "2024-01-15T10:30:00Z" + format: date-time + type: string id: description: Unique identifier of the interaction. example: "00000000-0000-0000-0000-000000000000" type: string + modified_at: + description: Timestamp when the interaction was last updated. + example: "2024-01-15T10:30:00Z" + format: date-time + type: string type: $ref: "#/components/schemas/LLMObsInteractionType" required: @@ -38083,6 +38105,8 @@ components: - type - content_id - already_existed + - created_at + - modified_at type: object LLMObsAnnotationQueueInteractionsDataAttributesRequest: description: Attributes for adding interactions to an annotation queue. diff --git a/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotatedInteractionItem.java b/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotatedInteractionItem.java index 5f84e665c0c..4648bf3c293 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotatedInteractionItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotatedInteractionItem.java @@ -13,6 +13,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.time.OffsetDateTime; import java.util.ArrayList; import java.util.HashMap; import java.util.List; @@ -23,7 +24,9 @@ @JsonPropertyOrder({ LLMObsAnnotatedInteractionItem.JSON_PROPERTY_ANNOTATIONS, LLMObsAnnotatedInteractionItem.JSON_PROPERTY_CONTENT_ID, + LLMObsAnnotatedInteractionItem.JSON_PROPERTY_CREATED_AT, LLMObsAnnotatedInteractionItem.JSON_PROPERTY_ID, + LLMObsAnnotatedInteractionItem.JSON_PROPERTY_MODIFIED_AT, LLMObsAnnotatedInteractionItem.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated( @@ -36,9 +39,15 @@ public class LLMObsAnnotatedInteractionItem { public static final String JSON_PROPERTY_CONTENT_ID = "content_id"; private String contentId; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private OffsetDateTime createdAt; + public static final String JSON_PROPERTY_ID = "id"; private String id; + public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at"; + private OffsetDateTime modifiedAt; + public static final String JSON_PROPERTY_TYPE = "type"; private LLMObsInteractionType type; @@ -49,11 +58,15 @@ public LLMObsAnnotatedInteractionItem( @JsonProperty(required = true, value = JSON_PROPERTY_ANNOTATIONS) List annotations, @JsonProperty(required = true, value = JSON_PROPERTY_CONTENT_ID) String contentId, + @JsonProperty(required = true, value = JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id, + @JsonProperty(required = true, value = JSON_PROPERTY_MODIFIED_AT) OffsetDateTime modifiedAt, @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LLMObsInteractionType type) { this.annotations = annotations; this.contentId = contentId; + this.createdAt = createdAt; this.id = id; + this.modifiedAt = modifiedAt; this.type = type; this.unparsed |= !type.isValid(); } @@ -107,6 +120,26 @@ public void setContentId(String contentId) { this.contentId = contentId; } + public LLMObsAnnotatedInteractionItem createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Timestamp when the interaction was added to the queue. + * + * @return createdAt + */ + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + public LLMObsAnnotatedInteractionItem id(String id) { this.id = id; return this; @@ -127,6 +160,26 @@ public void setId(String id) { this.id = id; } + public LLMObsAnnotatedInteractionItem modifiedAt(OffsetDateTime modifiedAt) { + this.modifiedAt = modifiedAt; + return this; + } + + /** + * Timestamp when the interaction was last updated. + * + * @return modifiedAt + */ + @JsonProperty(JSON_PROPERTY_MODIFIED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public OffsetDateTime getModifiedAt() { + return modifiedAt; + } + + public void setModifiedAt(OffsetDateTime modifiedAt) { + this.modifiedAt = modifiedAt; + } + public LLMObsAnnotatedInteractionItem type(LLMObsInteractionType type) { this.type = type; this.unparsed |= !type.isValid(); @@ -210,7 +263,9 @@ public boolean equals(Object o) { (LLMObsAnnotatedInteractionItem) o; return Objects.equals(this.annotations, llmObsAnnotatedInteractionItem.annotations) && Objects.equals(this.contentId, llmObsAnnotatedInteractionItem.contentId) + && Objects.equals(this.createdAt, llmObsAnnotatedInteractionItem.createdAt) && Objects.equals(this.id, llmObsAnnotatedInteractionItem.id) + && Objects.equals(this.modifiedAt, llmObsAnnotatedInteractionItem.modifiedAt) && Objects.equals(this.type, llmObsAnnotatedInteractionItem.type) && Objects.equals( this.additionalProperties, llmObsAnnotatedInteractionItem.additionalProperties); @@ -218,7 +273,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(annotations, contentId, id, type, additionalProperties); + return Objects.hash( + annotations, contentId, createdAt, id, modifiedAt, type, additionalProperties); } @Override @@ -227,7 +283,9 @@ public String toString() { sb.append("class LLMObsAnnotatedInteractionItem {\n"); sb.append(" annotations: ").append(toIndentedString(annotations)).append("\n"); sb.append(" contentId: ").append(toIndentedString(contentId)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties)) diff --git a/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionResponseItem.java b/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionResponseItem.java index c319f22806c..b80e2b509b6 100644 --- a/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionResponseItem.java +++ b/src/main/java/com/datadog/api/client/v2/model/LLMObsAnnotationQueueInteractionResponseItem.java @@ -13,6 +13,7 @@ import com.fasterxml.jackson.annotation.JsonInclude; import com.fasterxml.jackson.annotation.JsonProperty; import com.fasterxml.jackson.annotation.JsonPropertyOrder; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; import java.util.Objects; @@ -21,7 +22,9 @@ @JsonPropertyOrder({ LLMObsAnnotationQueueInteractionResponseItem.JSON_PROPERTY_ALREADY_EXISTED, LLMObsAnnotationQueueInteractionResponseItem.JSON_PROPERTY_CONTENT_ID, + LLMObsAnnotationQueueInteractionResponseItem.JSON_PROPERTY_CREATED_AT, LLMObsAnnotationQueueInteractionResponseItem.JSON_PROPERTY_ID, + LLMObsAnnotationQueueInteractionResponseItem.JSON_PROPERTY_MODIFIED_AT, LLMObsAnnotationQueueInteractionResponseItem.JSON_PROPERTY_TYPE }) @jakarta.annotation.Generated( @@ -34,9 +37,15 @@ public class LLMObsAnnotationQueueInteractionResponseItem { public static final String JSON_PROPERTY_CONTENT_ID = "content_id"; private String contentId; + public static final String JSON_PROPERTY_CREATED_AT = "created_at"; + private OffsetDateTime createdAt; + public static final String JSON_PROPERTY_ID = "id"; private String id; + public static final String JSON_PROPERTY_MODIFIED_AT = "modified_at"; + private OffsetDateTime modifiedAt; + public static final String JSON_PROPERTY_TYPE = "type"; private LLMObsInteractionType type; @@ -46,11 +55,15 @@ public LLMObsAnnotationQueueInteractionResponseItem() {} public LLMObsAnnotationQueueInteractionResponseItem( @JsonProperty(required = true, value = JSON_PROPERTY_ALREADY_EXISTED) Boolean alreadyExisted, @JsonProperty(required = true, value = JSON_PROPERTY_CONTENT_ID) String contentId, + @JsonProperty(required = true, value = JSON_PROPERTY_CREATED_AT) OffsetDateTime createdAt, @JsonProperty(required = true, value = JSON_PROPERTY_ID) String id, + @JsonProperty(required = true, value = JSON_PROPERTY_MODIFIED_AT) OffsetDateTime modifiedAt, @JsonProperty(required = true, value = JSON_PROPERTY_TYPE) LLMObsInteractionType type) { this.alreadyExisted = alreadyExisted; this.contentId = contentId; + this.createdAt = createdAt; this.id = id; + this.modifiedAt = modifiedAt; this.type = type; this.unparsed |= !type.isValid(); } @@ -95,6 +108,26 @@ public void setContentId(String contentId) { this.contentId = contentId; } + public LLMObsAnnotationQueueInteractionResponseItem createdAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + * Timestamp when the interaction was added to the queue. + * + * @return createdAt + */ + @JsonProperty(JSON_PROPERTY_CREATED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public OffsetDateTime getCreatedAt() { + return createdAt; + } + + public void setCreatedAt(OffsetDateTime createdAt) { + this.createdAt = createdAt; + } + public LLMObsAnnotationQueueInteractionResponseItem id(String id) { this.id = id; return this; @@ -115,6 +148,26 @@ public void setId(String id) { this.id = id; } + public LLMObsAnnotationQueueInteractionResponseItem modifiedAt(OffsetDateTime modifiedAt) { + this.modifiedAt = modifiedAt; + return this; + } + + /** + * Timestamp when the interaction was last updated. + * + * @return modifiedAt + */ + @JsonProperty(JSON_PROPERTY_MODIFIED_AT) + @JsonInclude(value = JsonInclude.Include.ALWAYS) + public OffsetDateTime getModifiedAt() { + return modifiedAt; + } + + public void setModifiedAt(OffsetDateTime modifiedAt) { + this.modifiedAt = modifiedAt; + } + public LLMObsAnnotationQueueInteractionResponseItem type(LLMObsInteractionType type) { this.type = type; this.unparsed |= !type.isValid(); @@ -200,7 +253,9 @@ public boolean equals(Object o) { return Objects.equals( this.alreadyExisted, llmObsAnnotationQueueInteractionResponseItem.alreadyExisted) && Objects.equals(this.contentId, llmObsAnnotationQueueInteractionResponseItem.contentId) + && Objects.equals(this.createdAt, llmObsAnnotationQueueInteractionResponseItem.createdAt) && Objects.equals(this.id, llmObsAnnotationQueueInteractionResponseItem.id) + && Objects.equals(this.modifiedAt, llmObsAnnotationQueueInteractionResponseItem.modifiedAt) && Objects.equals(this.type, llmObsAnnotationQueueInteractionResponseItem.type) && Objects.equals( this.additionalProperties, @@ -209,7 +264,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return Objects.hash(alreadyExisted, contentId, id, type, additionalProperties); + return Objects.hash( + alreadyExisted, contentId, createdAt, id, modifiedAt, type, additionalProperties); } @Override @@ -218,7 +274,9 @@ public String toString() { sb.append("class LLMObsAnnotationQueueInteractionResponseItem {\n"); sb.append(" alreadyExisted: ").append(toIndentedString(alreadyExisted)).append("\n"); sb.append(" contentId: ").append(toIndentedString(contentId)).append("\n"); + sb.append(" createdAt: ").append(toIndentedString(createdAt)).append("\n"); sb.append(" id: ").append(toIndentedString(id)).append("\n"); + sb.append(" modifiedAt: ").append(toIndentedString(modifiedAt)).append("\n"); sb.append(" type: ").append(toIndentedString(type)).append("\n"); sb.append(" additionalProperties: ") .append(toIndentedString(additionalProperties))