Skip to content

Commit 330bd16

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add created_at/modified_at to LLM Obs annotation queue interaction responses (#3433)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 47ad6cb commit 330bd16

5 files changed

Lines changed: 74 additions & 1 deletion

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42392,16 +42392,28 @@ components:
4239242392
description: Upstream entity identifier supplied by the caller.
4239342393
example: "trace-abc-123"
4239442394
type: string
42395+
created_at:
42396+
description: Timestamp when the interaction was added to the queue.
42397+
example: "2024-01-15T10:30:00Z"
42398+
format: date-time
42399+
type: string
4239542400
id:
4239642401
description: Unique identifier of the interaction.
4239742402
example: "interaction-456"
4239842403
type: string
42404+
modified_at:
42405+
description: Timestamp when the interaction was last updated.
42406+
example: "2024-01-15T10:30:00Z"
42407+
format: date-time
42408+
type: string
4239942409
type:
4240042410
$ref: "#/components/schemas/LLMObsTraceInteractionType"
4240142411
required:
4240242412
- id
4240342413
- type
4240442414
- content_id
42415+
- created_at
42416+
- modified_at
4240542417
- annotations
4240642418
type: object
4240742419
LLMObsTraceInteractionItem:
@@ -42428,17 +42440,29 @@ components:
4242842440
description: Upstream entity identifier supplied by the caller.
4242942441
example: "trace-abc-123"
4243042442
type: string
42443+
created_at:
42444+
description: Timestamp when the interaction was added to the queue.
42445+
example: "2024-01-15T10:30:00Z"
42446+
format: date-time
42447+
type: string
4243142448
id:
4243242449
description: Unique identifier of the interaction.
4243342450
example: "00000000-0000-0000-0000-000000000000"
4243442451
type: string
42452+
modified_at:
42453+
description: Timestamp when the interaction was last updated.
42454+
example: "2024-01-15T10:30:00Z"
42455+
format: date-time
42456+
type: string
4243542457
type:
4243642458
$ref: "#/components/schemas/LLMObsTraceInteractionType"
4243742459
required:
4243842460
- id
4243942461
- type
4244042462
- content_id
4244142463
- already_existed
42464+
- created_at
42465+
- modified_at
4244242466
type: object
4244342467
LLMObsTraceInteractionType:
4244442468
description: Type of an upstream-entity interaction.

src/datadog_api_client/v2/model/llm_obs_annotated_interaction_item.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ def __init__(self, **kwargs):
2121
:param content_id: Upstream entity identifier supplied by the caller.
2222
:type content_id: str
2323
24+
:param created_at: Timestamp when the interaction was added to the queue.
25+
:type created_at: datetime
26+
2427
:param id: Unique identifier of the interaction.
2528
:type id: str
2629
30+
:param modified_at: Timestamp when the interaction was last updated.
31+
:type modified_at: datetime
32+
2733
:param type: Type of an upstream-entity interaction.
2834
:type type: LLMObsTraceInteractionType
2935

src/datadog_api_client/v2/model/llm_obs_annotation_queue_interaction_response_item.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,15 @@ def __init__(self, **kwargs):
2121
:param content_id: Upstream entity identifier supplied by the caller.
2222
:type content_id: str
2323
24+
:param created_at: Timestamp when the interaction was added to the queue.
25+
:type created_at: datetime
26+
2427
:param id: Unique identifier of the interaction.
2528
:type id: str
2629
30+
:param modified_at: Timestamp when the interaction was last updated.
31+
:type modified_at: datetime
32+
2733
:param type: Type of an upstream-entity interaction.
2834
:type type: LLMObsTraceInteractionType
2935

src/datadog_api_client/v2/model/llm_obs_trace_annotated_interaction_item.py

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
datetime,
1112
)
1213

1314

@@ -25,22 +26,28 @@ def openapi_types(_):
2526
return {
2627
"annotations": ([LLMObsAnnotationItem],),
2728
"content_id": (str,),
29+
"created_at": (datetime,),
2830
"id": (str,),
31+
"modified_at": (datetime,),
2932
"type": (LLMObsTraceInteractionType,),
3033
}
3134

3235
attribute_map = {
3336
"annotations": "annotations",
3437
"content_id": "content_id",
38+
"created_at": "created_at",
3539
"id": "id",
40+
"modified_at": "modified_at",
3641
"type": "type",
3742
}
3843

3944
def __init__(
4045
self_,
4146
annotations: List[LLMObsAnnotationItem],
4247
content_id: str,
48+
created_at: datetime,
4349
id: str,
50+
modified_at: datetime,
4451
type: LLMObsTraceInteractionType,
4552
**kwargs,
4653
):
@@ -53,15 +60,23 @@ def __init__(
5360
:param content_id: Upstream entity identifier supplied by the caller.
5461
:type content_id: str
5562
63+
:param created_at: Timestamp when the interaction was added to the queue.
64+
:type created_at: datetime
65+
5666
:param id: Unique identifier of the interaction.
5767
:type id: str
5868
69+
:param modified_at: Timestamp when the interaction was last updated.
70+
:type modified_at: datetime
71+
5972
:param type: Type of an upstream-entity interaction.
6073
:type type: LLMObsTraceInteractionType
6174
"""
6275
super().__init__(kwargs)
6376

6477
self_.annotations = annotations
6578
self_.content_id = content_id
79+
self_.created_at = created_at
6680
self_.id = id
81+
self_.modified_at = modified_at
6782
self_.type = type

src/datadog_api_client/v2/model/llm_obs_trace_interaction_response_item.py

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from datadog_api_client.model_utils import (
99
ModelNormal,
1010
cached_property,
11+
datetime,
1112
)
1213

1314

@@ -23,18 +24,31 @@ def openapi_types(_):
2324
return {
2425
"already_existed": (bool,),
2526
"content_id": (str,),
27+
"created_at": (datetime,),
2628
"id": (str,),
29+
"modified_at": (datetime,),
2730
"type": (LLMObsTraceInteractionType,),
2831
}
2932

3033
attribute_map = {
3134
"already_existed": "already_existed",
3235
"content_id": "content_id",
36+
"created_at": "created_at",
3337
"id": "id",
38+
"modified_at": "modified_at",
3439
"type": "type",
3540
}
3641

37-
def __init__(self_, already_existed: bool, content_id: str, id: str, type: LLMObsTraceInteractionType, **kwargs):
42+
def __init__(
43+
self_,
44+
already_existed: bool,
45+
content_id: str,
46+
created_at: datetime,
47+
id: str,
48+
modified_at: datetime,
49+
type: LLMObsTraceInteractionType,
50+
**kwargs,
51+
):
3852
"""
3953
A trace, experiment trace, or session interaction result.
4054
@@ -44,15 +58,23 @@ def __init__(self_, already_existed: bool, content_id: str, id: str, type: LLMOb
4458
:param content_id: Upstream entity identifier supplied by the caller.
4559
:type content_id: str
4660
61+
:param created_at: Timestamp when the interaction was added to the queue.
62+
:type created_at: datetime
63+
4764
:param id: Unique identifier of the interaction.
4865
:type id: str
4966
67+
:param modified_at: Timestamp when the interaction was last updated.
68+
:type modified_at: datetime
69+
5070
:param type: Type of an upstream-entity interaction.
5171
:type type: LLMObsTraceInteractionType
5272
"""
5373
super().__init__(kwargs)
5474

5575
self_.already_existed = already_existed
5676
self_.content_id = content_id
77+
self_.created_at = created_at
5778
self_.id = id
79+
self_.modified_at = modified_at
5880
self_.type = type

0 commit comments

Comments
 (0)