Skip to content
Merged
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 @@ -42392,16 +42392,28 @@ components:
description: Upstream entity identifier supplied by the caller.
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/LLMObsTraceInteractionType"
required:
- id
- type
- content_id
- created_at
- modified_at
- annotations
type: object
LLMObsTraceInteractionItem:
Expand All @@ -42428,17 +42440,29 @@ components:
description: Upstream entity identifier supplied by the caller.
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/LLMObsTraceInteractionType"
required:
- id
- type
- content_id
- already_existed
- created_at
- modified_at
type: object
LLMObsTraceInteractionType:
description: Type of an upstream-entity interaction.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ def __init__(self, **kwargs):
:param content_id: Upstream entity identifier supplied by the caller.
: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 an upstream-entity interaction.
:type type: LLMObsTraceInteractionType

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,15 @@ def __init__(self, **kwargs):
:param content_id: Upstream entity identifier supplied by the caller.
: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 an upstream-entity interaction.
:type type: LLMObsTraceInteractionType

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,22 +26,28 @@ def openapi_types(_):
return {
"annotations": ([LLMObsAnnotationItem],),
"content_id": (str,),
"created_at": (datetime,),
"id": (str,),
"modified_at": (datetime,),
"type": (LLMObsTraceInteractionType,),
}

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,
created_at: datetime,
id: str,
modified_at: datetime,
type: LLMObsTraceInteractionType,
**kwargs,
):
Expand All @@ -53,15 +60,23 @@ def __init__(
:param content_id: Upstream entity identifier supplied by the caller.
: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 an upstream-entity interaction.
:type type: LLMObsTraceInteractionType
"""
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": (LLMObsTraceInteractionType,),
}

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: LLMObsTraceInteractionType, **kwargs):
def __init__(
self_,
already_existed: bool,
content_id: str,
created_at: datetime,
id: str,
modified_at: datetime,
type: LLMObsTraceInteractionType,
**kwargs,
):
"""
A trace, experiment trace, or session interaction result.

Expand All @@ -44,15 +58,23 @@ def __init__(self_, already_existed: bool, content_id: str, id: str, type: LLMOb
:param content_id: Upstream entity identifier supplied by the caller.
: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 an upstream-entity interaction.
:type type: LLMObsTraceInteractionType
"""
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