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 @@ -8,6 +8,7 @@
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
datetime,
)


Expand All @@ -25,19 +26,30 @@ def openapi_types(_):
return {
"annotations": ([LLMObsAnnotationItem],),
"content_id": (str,),
"created_at": (datetime,),
"id": (str,),
"modified_at": (datetime,),
"type": (LLMObsInteractionType,),
}

attribute_map = {
"annotations": "annotations",
"content_id": "content_id",
"created_at": "created_at",
"id": "id",
"modified_at": "modified_at",
"type": "type",
}

def __init__(
self_, annotations: List[LLMObsAnnotationItem], content_id: str, id: str, type: LLMObsInteractionType, **kwargs
self_,
annotations: List[LLMObsAnnotationItem],
content_id: str,
created_at: datetime,
id: str,
modified_at: datetime,
type: LLMObsInteractionType,
**kwargs,
):
"""
An interaction with its associated annotations.
Expand All @@ -48,15 +60,23 @@ def __init__(
:param content_id: Identifier of the content for this interaction.
:type content_id: str

:param created_at: Timestamp when the interaction was added to the queue.
:type created_at: datetime

:param id: Unique identifier of the interaction.
:type id: str

:param modified_at: Timestamp when the interaction was last updated.
:type modified_at: datetime

:param type: Type of interaction in an annotation queue.
:type type: LLMObsInteractionType
"""
super().__init__(kwargs)

self_.annotations = annotations
self_.content_id = content_id
self_.created_at = created_at
self_.id = id
self_.modified_at = modified_at
self_.type = type
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from datadog_api_client.model_utils import (
ModelNormal,
cached_property,
datetime,
)


Expand All @@ -23,18 +24,31 @@ def openapi_types(_):
return {
"already_existed": (bool,),
"content_id": (str,),
"created_at": (datetime,),
"id": (str,),
"modified_at": (datetime,),
"type": (LLMObsInteractionType,),
}

attribute_map = {
"already_existed": "already_existed",
"content_id": "content_id",
"created_at": "created_at",
"id": "id",
"modified_at": "modified_at",
"type": "type",
}

def __init__(self_, already_existed: bool, content_id: str, id: str, type: LLMObsInteractionType, **kwargs):
def __init__(
self_,
already_existed: bool,
content_id: str,
created_at: datetime,
id: str,
modified_at: datetime,
type: LLMObsInteractionType,
**kwargs,
):
"""
A single interaction result.

Expand All @@ -44,15 +58,23 @@ def __init__(self_, already_existed: bool, content_id: str, id: str, type: LLMOb
:param content_id: Identifier of the content for this interaction.
:type content_id: str

:param created_at: Timestamp when the interaction was added to the queue.
:type created_at: datetime

:param id: Unique identifier of the interaction.
:type id: str

:param modified_at: Timestamp when the interaction was last updated.
:type modified_at: datetime

:param type: Type of interaction in an annotation queue.
:type type: LLMObsInteractionType
"""
super().__init__(kwargs)

self_.already_existed = already_existed
self_.content_id = content_id
self_.created_at = created_at
self_.id = id
self_.modified_at = modified_at
self_.type = type
Loading