@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LLMObsContentBlock extends Object
display_block interaction. type
discriminates which other fields are meaningful:
markdown / text: content must be a string.
header: content must be a string; level, when set,
must be one of sm, md, lg, xl.
json: content must be a well-formed JSON value (object, array, or
scalar).
image: url is required.
widget: tileDef is required (any well-formed JSON; the frontend
owns the renderable schema).
llmobs_trace: traceId is required; interactionType,
when set, must be trace or experiment_trace.
height, when set, must be positive.
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_ALT |
static String |
JSON_PROPERTY_CONTENT |
static String |
JSON_PROPERTY_HEIGHT |
static String |
JSON_PROPERTY_INTERACTION_TYPE |
static String |
JSON_PROPERTY_LABEL |
static String |
JSON_PROPERTY_LEVEL |
static String |
JSON_PROPERTY_TILE_DEF |
static String |
JSON_PROPERTY_TIME_FRAME |
static String |
JSON_PROPERTY_TRACE_ID |
static String |
JSON_PROPERTY_TYPE |
static String |
JSON_PROPERTY_URL |
boolean |
unparsed |
| Constructor and Description |
|---|
LLMObsContentBlock() |
LLMObsContentBlock(LLMObsContentBlockType type) |
public boolean unparsed
public static final String JSON_PROPERTY_ALT
public static final String JSON_PROPERTY_CONTENT
public static final String JSON_PROPERTY_HEIGHT
public static final String JSON_PROPERTY_INTERACTION_TYPE
public static final String JSON_PROPERTY_LABEL
public static final String JSON_PROPERTY_LEVEL
public static final String JSON_PROPERTY_TILE_DEF
public static final String JSON_PROPERTY_TIME_FRAME
public static final String JSON_PROPERTY_TRACE_ID
public static final String JSON_PROPERTY_TYPE
public static final String JSON_PROPERTY_URL
public LLMObsContentBlock()
public LLMObsContentBlock(LLMObsContentBlockType type)
public LLMObsContentBlock alt(String alt)
@Nullable public String getAlt()
image block.public void setAlt(String alt)
public LLMObsContentBlock content(Object content)
@Nullable public Object getContent()
markdown, header, and text;
an arbitrary JSON value (object, array, or scalar) for json. Omitted for
image, widget, and llmobs_trace.public void setContent(Object content)
public LLMObsContentBlock height(Long height)
@Nullable public Long getHeight()
public void setHeight(Long height)
public LLMObsContentBlock interactionType(LLMObsContentBlockLLMObsTraceInteractionType interactionType)
@Nullable public LLMObsContentBlockLLMObsTraceInteractionType getInteractionType()
llmobs_trace block. Restricted to
trace or experiment_trace.public void setInteractionType(LLMObsContentBlockLLMObsTraceInteractionType interactionType)
public LLMObsContentBlock label(String label)
@Nullable public String getLabel()
public void setLabel(String label)
public LLMObsContentBlock level(LLMObsContentBlockHeaderLevel level)
@Nullable public LLMObsContentBlockHeaderLevel getLevel()
header block.public void setLevel(LLMObsContentBlockHeaderLevel level)
public LLMObsContentBlock tileDef(Object tileDef)
@Nullable public Object getTileDef()
widget block. Required for widget. The schema
is owned by the frontend renderer.public void setTileDef(Object tileDef)
public LLMObsContentBlock timeFrame(LLMObsContentBlockTimeFrame timeFrame)
@Nullable public LLMObsContentBlockTimeFrame getTimeFrame()
public void setTimeFrame(LLMObsContentBlockTimeFrame timeFrame)
public LLMObsContentBlock traceId(String traceId)
@Nullable public String getTraceId()
llmobs_trace blocks.public void setTraceId(String traceId)
public LLMObsContentBlock type(LLMObsContentBlockType type)
public LLMObsContentBlockType getType()
display_block content block. Adding a variant requires
coordinated changes in the frontend renderer.public void setType(LLMObsContentBlockType type)
public LLMObsContentBlock url(String url)
@Nullable public String getUrl()
image blocks.public void setUrl(String url)
public LLMObsContentBlock putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.