Skip to content

Commit dacbca6

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6a86230 of spec repo
1 parent f2a233b commit dacbca6

7 files changed

Lines changed: 538 additions & 5 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57962,6 +57962,9 @@ components:
5796257962
type: string
5796357963
type: object
5796457964
LLMObsContentBlock:
57965+
anyOf:
57966+
- $ref: '#/components/schemas/LLMObsFrontendContentBlock'
57967+
- $ref: '#/components/schemas/LLMObsLegacyContentBlock'
5796557968
description: |-
5796657969
A single content block rendered inside a `display_block` interaction.
5796757970
`type` discriminates which other fields are meaningful:
@@ -57972,18 +57975,21 @@ components:
5797257975
- `image`: `url` is required.
5797357976
- `widget`: `tileDef` is required (any well-formed JSON; the frontend owns the renderable schema).
5797457977
- `llmobs_trace`: `traceId` is required; `interactionType`, when set, must be `trace` or `experiment_trace`.
57978+
- `frontend`: `code` is required and must be a non-empty string; `label` is optional.
5797557979

5797657980
`height`, when set, must be positive.
5797757981
properties:
5797857982
alt:
5797957983
description: Alternative text for an `image` block.
5798057984
example: "Example image"
5798157985
type: string
57986+
code:
57987+
$ref: '#/components/schemas/LLMObsFrontendContentBlockCode'
5798257988
content:
5798357989
description: |-
5798457990
Block payload. A string for `markdown`, `header`, and `text`; an
5798557991
arbitrary JSON value (object, array, or scalar) for `json`. Omitted
57986-
for `image`, `widget`, and `llmobs_trace`.
57992+
for `image`, `widget`, `llmobs_trace`, and `frontend`.
5798757993
example: "## Triage Instructions"
5798857994
height:
5798957995
description: Optional rendered height. Must be positive when set.
@@ -57993,7 +57999,7 @@ components:
5799357999
interactionType:
5799458000
$ref: '#/components/schemas/LLMObsContentBlockLLMObsTraceInteractionType'
5799558001
label:
57996-
description: Optional label rendered alongside the block.
58002+
description: Optional label rendered alongside a `frontend` block.
5799758003
example: "Triage Instructions"
5799858004
type: string
5799958005
level:
@@ -58081,6 +58087,7 @@ components:
5808158087
- image
5808258088
- widget
5808358089
- llmobs_trace
58090+
- frontend
5808458091
example: markdown
5808558092
type: string
5808658093
x-enum-varnames:
@@ -58091,6 +58098,7 @@ components:
5809158098
- IMAGE
5809258099
- WIDGET
5809358100
- LLMOBS_TRACE
58101+
- FRONTEND
5809458102
LLMObsContentBlocks:
5809558103
description: |-
5809658104
List of content blocks that make up a `display_block` interaction.
@@ -60915,6 +60923,29 @@ components:
6091560923
required:
6091660924
- data
6091760925
type: object
60926+
LLMObsFrontendContentBlock:
60927+
description: Validation requirements for a `frontend` display block.
60928+
properties:
60929+
code:
60930+
$ref: '#/components/schemas/LLMObsFrontendContentBlockCode'
60931+
type:
60932+
$ref: '#/components/schemas/LLMObsFrontendContentBlockType'
60933+
required:
60934+
- code
60935+
type: object
60936+
LLMObsFrontendContentBlockCode:
60937+
description: HTML code rendered by a `frontend` block. Required for `frontend` blocks.
60938+
example: '<div class="status-card">Ready for review</div>'
60939+
minLength: 1
60940+
type: string
60941+
LLMObsFrontendContentBlockType:
60942+
description: Type discriminator for a `frontend` display block.
60943+
enum:
60944+
- frontend
60945+
example: frontend
60946+
type: string
60947+
x-enum-varnames:
60948+
- FRONTEND
6091860949
LLMObsInferenceCode:
6091960950
description: A generated code snippet for running an inference request programmatically.
6092060951
properties:
@@ -61520,6 +61551,32 @@ components:
6152061551
- CATEGORICAL
6152161552
- BOOLEAN
6152261553
- TEXT
61554+
LLMObsLegacyContentBlock:
61555+
description: Validation requirements for an existing non-frontend display block.
61556+
properties:
61557+
type:
61558+
$ref: '#/components/schemas/LLMObsLegacyContentBlockType'
61559+
type: object
61560+
LLMObsLegacyContentBlockType:
61561+
description: Type discriminator for an existing non-frontend display block.
61562+
enum:
61563+
- markdown
61564+
- header
61565+
- text
61566+
- json
61567+
- image
61568+
- widget
61569+
- llmobs_trace
61570+
example: markdown
61571+
type: string
61572+
x-enum-varnames:
61573+
- MARKDOWN
61574+
- HEADER
61575+
- TEXT
61576+
- JSON
61577+
- IMAGE
61578+
- WIDGET
61579+
- LLMOBS_TRACE
6152361580
LLMObsMetricAssessment:
6152461581
description: Assessment result for an Agent Observability experiment metric.
6152561582
enum:
@@ -169960,6 +170017,9 @@ paths:
169960170017
experiment_id: abc-123
169961170018
label: "Experiments"
169962170019
type: json
170020+
- code: '<div class="status-card">Ready for review</div>'
170021+
label: "Review status"
170022+
type: frontend
169963170023
type: display_block
169964170024
type: interactions
169965170025
schema:

src/main/java/com/datadog/api/client/v2/model/LLMObsContentBlock.java

Lines changed: 32 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,12 +32,15 @@
3232
* owns the renderable schema).
3333
* <li><code>llmobs_trace</code>: <code>traceId</code> is required; <code>interactionType</code>,
3434
* when set, must be <code>trace</code> or <code>experiment_trace</code>.
35+
* <li><code>frontend</code>: <code>code</code> is required and must be a non-empty string; <code>
36+
* label</code> is optional.
3537
* </ul>
3638
*
3739
* <p><code>height</code>, when set, must be positive.
3840
*/
3941
@JsonPropertyOrder({
4042
LLMObsContentBlock.JSON_PROPERTY_ALT,
43+
LLMObsContentBlock.JSON_PROPERTY_CODE,
4144
LLMObsContentBlock.JSON_PROPERTY_CONTENT,
4245
LLMObsContentBlock.JSON_PROPERTY_HEIGHT,
4346
LLMObsContentBlock.JSON_PROPERTY_INTERACTION_TYPE,
@@ -56,6 +59,9 @@ public class LLMObsContentBlock {
5659
public static final String JSON_PROPERTY_ALT = "alt";
5760
private String alt;
5861

62+
public static final String JSON_PROPERTY_CODE = "code";
63+
private String code;
64+
5965
public static final String JSON_PROPERTY_CONTENT = "content";
6066
private Object content = null;
6167

@@ -116,6 +122,27 @@ public void setAlt(String alt) {
116122
this.alt = alt;
117123
}
118124

125+
public LLMObsContentBlock code(String code) {
126+
this.code = code;
127+
return this;
128+
}
129+
130+
/**
131+
* HTML code rendered by a <code>frontend</code> block. Required for <code>frontend</code> blocks.
132+
*
133+
* @return code
134+
*/
135+
@jakarta.annotation.Nullable
136+
@JsonProperty(JSON_PROPERTY_CODE)
137+
@JsonInclude(value = JsonInclude.Include.USE_DEFAULTS)
138+
public String getCode() {
139+
return code;
140+
}
141+
142+
public void setCode(String code) {
143+
this.code = code;
144+
}
145+
119146
public LLMObsContentBlock content(Object content) {
120147
this.content = content;
121148
return this;
@@ -124,7 +151,7 @@ public LLMObsContentBlock content(Object content) {
124151
/**
125152
* Block payload. A string for <code>markdown</code>, <code>header</code>, and <code>text</code>;
126153
* an arbitrary JSON value (object, array, or scalar) for <code>json</code>. Omitted for <code>
127-
* image</code>, <code>widget</code>, and <code>llmobs_trace</code>.
154+
* image</code>, <code>widget</code>, <code>llmobs_trace</code>, and <code>frontend</code>.
128155
*
129156
* @return content
130157
*/
@@ -193,7 +220,7 @@ public LLMObsContentBlock label(String label) {
193220
}
194221

195222
/**
196-
* Optional label rendered alongside the block.
223+
* Optional label rendered alongside a <code>frontend</code> block.
197224
*
198225
* @return label
199226
*/
@@ -404,6 +431,7 @@ public boolean equals(Object o) {
404431
}
405432
LLMObsContentBlock llmObsContentBlock = (LLMObsContentBlock) o;
406433
return Objects.equals(this.alt, llmObsContentBlock.alt)
434+
&& Objects.equals(this.code, llmObsContentBlock.code)
407435
&& Objects.equals(this.content, llmObsContentBlock.content)
408436
&& Objects.equals(this.height, llmObsContentBlock.height)
409437
&& Objects.equals(this.interactionType, llmObsContentBlock.interactionType)
@@ -421,6 +449,7 @@ public boolean equals(Object o) {
421449
public int hashCode() {
422450
return Objects.hash(
423451
alt,
452+
code,
424453
content,
425454
height,
426455
interactionType,
@@ -439,6 +468,7 @@ public String toString() {
439468
StringBuilder sb = new StringBuilder();
440469
sb.append("class LLMObsContentBlock {\n");
441470
sb.append(" alt: ").append(toIndentedString(alt)).append("\n");
471+
sb.append(" code: ").append(toIndentedString(code)).append("\n");
442472
sb.append(" content: ").append(toIndentedString(content)).append("\n");
443473
sb.append(" height: ").append(toIndentedString(height)).append("\n");
444474
sb.append(" interactionType: ").append(toIndentedString(interactionType)).append("\n");

src/main/java/com/datadog/api/client/v2/model/LLMObsContentBlockType.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,8 @@ public class LLMObsContentBlockType extends ModelEnum<String> {
2727

2828
private static final Set<String> allowedValues =
2929
new HashSet<String>(
30-
Arrays.asList("markdown", "header", "text", "json", "image", "widget", "llmobs_trace"));
30+
Arrays.asList(
31+
"markdown", "header", "text", "json", "image", "widget", "llmobs_trace", "frontend"));
3132

3233
public static final LLMObsContentBlockType MARKDOWN = new LLMObsContentBlockType("markdown");
3334
public static final LLMObsContentBlockType HEADER = new LLMObsContentBlockType("header");
@@ -37,6 +38,7 @@ public class LLMObsContentBlockType extends ModelEnum<String> {
3738
public static final LLMObsContentBlockType WIDGET = new LLMObsContentBlockType("widget");
3839
public static final LLMObsContentBlockType LLMOBS_TRACE =
3940
new LLMObsContentBlockType("llmobs_trace");
41+
public static final LLMObsContentBlockType FRONTEND = new LLMObsContentBlockType("frontend");
4042

4143
LLMObsContentBlockType(String value) {
4244
super(value, allowedValues);

0 commit comments

Comments
 (0)