Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .generator/schemas/v2/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -38072,17 +38084,29 @@ 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:
- id
- type
- content_id
- already_existed
- created_at
- modified_at
type: object
LLMObsAnnotationQueueInteractionsDataAttributesRequest:
description: Attributes for adding interactions to an annotation queue.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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(
Expand All @@ -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;

Expand All @@ -49,11 +58,15 @@ public LLMObsAnnotatedInteractionItem(
@JsonProperty(required = true, value = JSON_PROPERTY_ANNOTATIONS)
List<LLMObsAnnotationItem> 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();
}
Expand Down Expand Up @@ -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;
Expand All @@ -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();
Expand Down Expand Up @@ -210,15 +263,18 @@ 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);
}

@Override
public int hashCode() {
return Objects.hash(annotations, contentId, id, type, additionalProperties);
return Objects.hash(
annotations, contentId, createdAt, id, modifiedAt, type, additionalProperties);
}

@Override
Expand All @@ -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))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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(
Expand All @@ -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;

Expand All @@ -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();
}
Expand Down Expand Up @@ -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;
Expand All @@ -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();
Expand Down Expand Up @@ -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,
Expand All @@ -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
Expand All @@ -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))
Expand Down
Loading