@@ -58479,6 +58479,9 @@ components:
5847958479 type: string
5848058480 type: object
5848158481 LLMObsContentBlock:
58482+ anyOf:
58483+ - $ref: '#/components/schemas/LLMObsFrontendContentBlock'
58484+ - $ref: '#/components/schemas/LLMObsLegacyContentBlock'
5848258485 description: |-
5848358486 A single content block rendered inside a `display_block` interaction.
5848458487 `type` discriminates which other fields are meaningful:
@@ -58489,18 +58492,21 @@ components:
5848958492 - `image`: `url` is required.
5849058493 - `widget`: `tileDef` is required (any well-formed JSON; the frontend owns the renderable schema).
5849158494 - `llmobs_trace`: `traceId` is required; `interactionType`, when set, must be `trace` or `experiment_trace`.
58495+ - `frontend`: `code` is required and must be a non-empty string; `label` is optional.
5849258496
5849358497 `height`, when set, must be positive.
5849458498 properties:
5849558499 alt:
5849658500 description: Alternative text for an `image` block.
5849758501 example: "Example image"
5849858502 type: string
58503+ code:
58504+ $ref: '#/components/schemas/LLMObsFrontendContentBlockCode'
5849958505 content:
5850058506 description: |-
5850158507 Block payload. A string for `markdown`, `header`, and `text`; an
5850258508 arbitrary JSON value (object, array, or scalar) for `json`. Omitted
58503- for `image`, `widget`, and `llmobs_trace `.
58509+ for `image`, `widget`, `llmobs_trace`, and `frontend `.
5850458510 example: "## Triage Instructions"
5850558511 height:
5850658512 description: Optional rendered height. Must be positive when set.
@@ -58510,7 +58516,7 @@ components:
5851058516 interactionType:
5851158517 $ref: '#/components/schemas/LLMObsContentBlockLLMObsTraceInteractionType'
5851258518 label:
58513- description: Optional label rendered alongside the block.
58519+ description: Optional label rendered alongside a `frontend` block.
5851458520 example: "Triage Instructions"
5851558521 type: string
5851658522 level:
@@ -58598,6 +58604,7 @@ components:
5859858604 - image
5859958605 - widget
5860058606 - llmobs_trace
58607+ - frontend
5860158608 example: markdown
5860258609 type: string
5860358610 x-enum-varnames:
@@ -58608,6 +58615,7 @@ components:
5860858615 - IMAGE
5860958616 - WIDGET
5861058617 - LLMOBS_TRACE
58618+ - FRONTEND
5861158619 LLMObsContentBlocks:
5861258620 description: |-
5861358621 List of content blocks that make up a `display_block` interaction.
@@ -61432,6 +61440,29 @@ components:
6143261440 required:
6143361441 - data
6143461442 type: object
61443+ LLMObsFrontendContentBlock:
61444+ description: Validation requirements for a `frontend` display block.
61445+ properties:
61446+ code:
61447+ $ref: '#/components/schemas/LLMObsFrontendContentBlockCode'
61448+ type:
61449+ $ref: '#/components/schemas/LLMObsFrontendContentBlockType'
61450+ required:
61451+ - code
61452+ type: object
61453+ LLMObsFrontendContentBlockCode:
61454+ description: HTML code rendered by a `frontend` block. Required for `frontend` blocks.
61455+ example: '<div class="status-card">Ready for review</div>'
61456+ minLength: 1
61457+ type: string
61458+ LLMObsFrontendContentBlockType:
61459+ description: Type discriminator for a `frontend` display block.
61460+ enum:
61461+ - frontend
61462+ example: frontend
61463+ type: string
61464+ x-enum-varnames:
61465+ - FRONTEND
6143561466 LLMObsInferenceCode:
6143661467 description: A generated code snippet for running an inference request programmatically.
6143761468 properties:
@@ -62037,6 +62068,32 @@ components:
6203762068 - CATEGORICAL
6203862069 - BOOLEAN
6203962070 - TEXT
62071+ LLMObsLegacyContentBlock:
62072+ description: Validation requirements for an existing non-frontend display block.
62073+ properties:
62074+ type:
62075+ $ref: '#/components/schemas/LLMObsLegacyContentBlockType'
62076+ type: object
62077+ LLMObsLegacyContentBlockType:
62078+ description: Type discriminator for an existing non-frontend display block.
62079+ enum:
62080+ - markdown
62081+ - header
62082+ - text
62083+ - json
62084+ - image
62085+ - widget
62086+ - llmobs_trace
62087+ example: markdown
62088+ type: string
62089+ x-enum-varnames:
62090+ - MARKDOWN
62091+ - HEADER
62092+ - TEXT
62093+ - JSON
62094+ - IMAGE
62095+ - WIDGET
62096+ - LLMOBS_TRACE
6204062097 LLMObsMetricAssessment:
6204162098 description: Assessment result for an Agent Observability experiment metric.
6204262099 enum:
@@ -170490,6 +170547,9 @@ paths:
170490170547 experiment_id: abc-123
170491170548 label: "Experiments"
170492170549 type: json
170550+ - code: '<div class="status-card">Ready for review</div>'
170551+ label: "Review status"
170552+ type: frontend
170493170553 type: display_block
170494170554 type: interactions
170495170555 schema:
0 commit comments