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 @@ -27,9 +27,15 @@ class LLMObsAnnotatedInteractionItem
# Identifier of the content for this interaction.
attr_reader :content_id

# Timestamp when the interaction was added to the queue.
attr_reader :created_at

# Unique identifier of the interaction.
attr_reader :id

# Timestamp when the interaction was last updated.
attr_reader :modified_at

# Type of interaction in an annotation queue.
attr_reader :type

Expand All @@ -41,7 +47,9 @@ def self.attribute_map
{
:'annotations' => :'annotations',
:'content_id' => :'content_id',
:'created_at' => :'created_at',
:'id' => :'id',
:'modified_at' => :'modified_at',
:'type' => :'type'
}
end
Expand All @@ -52,7 +60,9 @@ def self.openapi_types
{
:'annotations' => :'Array<LLMObsAnnotationItem>',
:'content_id' => :'String',
:'created_at' => :'Time',
:'id' => :'String',
:'modified_at' => :'Time',
:'type' => :'LLMObsInteractionType'
}
end
Expand Down Expand Up @@ -85,10 +95,18 @@ def initialize(attributes = {})
self.content_id = attributes[:'content_id']
end

if attributes.key?(:'created_at')
self.created_at = attributes[:'created_at']
end

if attributes.key?(:'id')
self.id = attributes[:'id']
end

if attributes.key?(:'modified_at')
self.modified_at = attributes[:'modified_at']
end

if attributes.key?(:'type')
self.type = attributes[:'type']
end
Expand All @@ -100,7 +118,9 @@ def initialize(attributes = {})
def valid?
return false if @annotations.nil?
return false if @content_id.nil?
return false if @created_at.nil?
return false if @id.nil?
return false if @modified_at.nil?
return false if @type.nil?
true
end
Expand All @@ -125,6 +145,16 @@ def content_id=(content_id)
@content_id = content_id
end

# Custom attribute writer method with validation
# @param created_at [Object] Object to be assigned
# @!visibility private
def created_at=(created_at)
if created_at.nil?
fail ArgumentError, 'invalid value for "created_at", created_at cannot be nil.'
end
@created_at = created_at
end

# Custom attribute writer method with validation
# @param id [Object] Object to be assigned
# @!visibility private
Expand All @@ -135,6 +165,16 @@ def id=(id)
@id = id
end

# Custom attribute writer method with validation
# @param modified_at [Object] Object to be assigned
# @!visibility private
def modified_at=(modified_at)
if modified_at.nil?
fail ArgumentError, 'invalid value for "modified_at", modified_at cannot be nil.'
end
@modified_at = modified_at
end

# Custom attribute writer method with validation
# @param type [Object] Object to be assigned
# @!visibility private
Expand Down Expand Up @@ -173,7 +213,9 @@ def ==(o)
self.class == o.class &&
annotations == o.annotations &&
content_id == o.content_id &&
created_at == o.created_at &&
id == o.id &&
modified_at == o.modified_at &&
type == o.type &&
additional_properties == o.additional_properties
end
Expand All @@ -182,7 +224,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[annotations, content_id, id, type, additional_properties].hash
[annotations, content_id, created_at, id, modified_at, type, additional_properties].hash
end
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,15 @@ class LLMObsAnnotationQueueInteractionResponseItem
# Identifier of the content for this interaction.
attr_reader :content_id

# Timestamp when the interaction was added to the queue.
attr_reader :created_at

# Unique identifier of the interaction.
attr_reader :id

# Timestamp when the interaction was last updated.
attr_reader :modified_at

# Type of interaction in an annotation queue.
attr_reader :type

Expand All @@ -41,7 +47,9 @@ def self.attribute_map
{
:'already_existed' => :'already_existed',
:'content_id' => :'content_id',
:'created_at' => :'created_at',
:'id' => :'id',
:'modified_at' => :'modified_at',
:'type' => :'type'
}
end
Expand All @@ -52,7 +60,9 @@ def self.openapi_types
{
:'already_existed' => :'Boolean',
:'content_id' => :'String',
:'created_at' => :'Time',
:'id' => :'String',
:'modified_at' => :'Time',
:'type' => :'LLMObsInteractionType'
}
end
Expand Down Expand Up @@ -83,10 +93,18 @@ def initialize(attributes = {})
self.content_id = attributes[:'content_id']
end

if attributes.key?(:'created_at')
self.created_at = attributes[:'created_at']
end

if attributes.key?(:'id')
self.id = attributes[:'id']
end

if attributes.key?(:'modified_at')
self.modified_at = attributes[:'modified_at']
end

if attributes.key?(:'type')
self.type = attributes[:'type']
end
Expand All @@ -98,7 +116,9 @@ def initialize(attributes = {})
def valid?
return false if @already_existed.nil?
return false if @content_id.nil?
return false if @created_at.nil?
return false if @id.nil?
return false if @modified_at.nil?
return false if @type.nil?
true
end
Expand All @@ -123,6 +143,16 @@ def content_id=(content_id)
@content_id = content_id
end

# Custom attribute writer method with validation
# @param created_at [Object] Object to be assigned
# @!visibility private
def created_at=(created_at)
if created_at.nil?
fail ArgumentError, 'invalid value for "created_at", created_at cannot be nil.'
end
@created_at = created_at
end

# Custom attribute writer method with validation
# @param id [Object] Object to be assigned
# @!visibility private
Expand All @@ -133,6 +163,16 @@ def id=(id)
@id = id
end

# Custom attribute writer method with validation
# @param modified_at [Object] Object to be assigned
# @!visibility private
def modified_at=(modified_at)
if modified_at.nil?
fail ArgumentError, 'invalid value for "modified_at", modified_at cannot be nil.'
end
@modified_at = modified_at
end

# Custom attribute writer method with validation
# @param type [Object] Object to be assigned
# @!visibility private
Expand Down Expand Up @@ -171,7 +211,9 @@ def ==(o)
self.class == o.class &&
already_existed == o.already_existed &&
content_id == o.content_id &&
created_at == o.created_at &&
id == o.id &&
modified_at == o.modified_at &&
type == o.type &&
additional_properties == o.additional_properties
end
Expand All @@ -180,7 +222,7 @@ def ==(o)
# @return [Integer] Hash code
# @!visibility private
def hash
[already_existed, content_id, id, type, additional_properties].hash
[already_existed, content_id, created_at, id, modified_at, type, additional_properties].hash
end
end
end
Loading