Class: DatadogAPIClient::V2::LLMObsContentBlock
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::LLMObsContentBlock
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/llm_obs_content_block.rb
Overview
A single content block rendered inside a display_block interaction.
type discriminates which other fields are meaningful:
markdown/text:contentmust be a string.header:contentmust be a string;level, when set, must be one ofsm,md,lg,xl.json:contentmust be a well-formed JSON value (object, array, or scalar).image:urlis required.widget:tileDefis required (any well-formed JSON; the frontend owns the renderable schema).llmobs_trace:traceIdis required;interactionType, when set, must betraceorexperiment_trace.
height, when set, must be positive.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#alt ⇒ Object
Alternative text for an
imageblock. -
#content ⇒ Object
Block payload.
-
#height ⇒ Object
Optional rendered height.
-
#interaction_type ⇒ Object
Upstream interaction type referenced by an
llmobs_traceblock. -
#label ⇒ Object
Optional label rendered alongside the block.
-
#level ⇒ Object
Visual size for a
headerblock. -
#tile_def ⇒ Object
Tile definition for a
widgetblock. -
#time_frame ⇒ Object
Unix-millis time range used by chart blocks.
-
#trace_id ⇒ Object
Trace identifier.
-
#type ⇒ Object
readonly
Discriminator for a single
display_blockcontent block. -
#url ⇒ Object
URL of the image.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
72 73 74 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 72 def additional_properties @additional_properties end |
#alt ⇒ Object
Alternative text for an image block.
35 36 37 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 35 def alt @alt end |
#content ⇒ Object
Block payload. A string for markdown, header, and text; an
arbitrary JSON value (object, array, or scalar) for json. Omitted
for image, widget, and llmobs_trace.
40 41 42 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 40 def content @content end |
#height ⇒ Object
Optional rendered height. Must be positive when set.
43 44 45 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 43 def height @height end |
#interaction_type ⇒ Object
Upstream interaction type referenced by an llmobs_trace block.
Restricted to trace or experiment_trace.
47 48 49 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 47 def interaction_type @interaction_type end |
#label ⇒ Object
Optional label rendered alongside the block.
50 51 52 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 50 def label @label end |
#level ⇒ Object
Visual size for a header block.
53 54 55 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 53 def level @level end |
#tile_def ⇒ Object
Tile definition for a widget block. Required for widget. The
schema is owned by the frontend renderer.
57 58 59 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 57 def tile_def @tile_def end |
#time_frame ⇒ Object
Unix-millis time range used by chart blocks.
60 61 62 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 60 def time_frame @time_frame end |
#trace_id ⇒ Object
Trace identifier. Required for llmobs_trace blocks.
63 64 65 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 63 def trace_id @trace_id end |
#type ⇒ Object
Discriminator for a single display_block content block. Adding a
variant requires coordinated changes in the frontend renderer.
67 68 69 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 67 def type @type end |
#url ⇒ Object
URL of the image. Required for image blocks.
70 71 72 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 70 def url @url end |