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.frontend:codeis required and must be a non-empty string;labelis optional.
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. -
#code ⇒ Object
readonly
HTML code rendered by a
frontendblock. -
#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 a
frontendblock. -
#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.
76 77 78 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 76 def additional_properties @additional_properties end |
#alt ⇒ Object
Alternative text for an image block.
36 37 38 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 36 def alt @alt end |
#code ⇒ Object
HTML code rendered by a frontend block. Required for frontend blocks.
39 40 41 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 39 def code @code 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, llmobs_trace, and frontend.
44 45 46 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 44 def content @content end |
#height ⇒ Object
Optional rendered height. Must be positive when set.
47 48 49 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 47 def height @height end |
#interaction_type ⇒ Object
Upstream interaction type referenced by an llmobs_trace block.
Restricted to trace or experiment_trace.
51 52 53 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 51 def interaction_type @interaction_type end |
#label ⇒ Object
Optional label rendered alongside a frontend block.
54 55 56 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 54 def label @label end |
#level ⇒ Object
Visual size for a header block.
57 58 59 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 57 def level @level end |
#tile_def ⇒ Object
Tile definition for a widget block. Required for widget. The
schema is owned by the frontend renderer.
61 62 63 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 61 def tile_def @tile_def end |
#time_frame ⇒ Object
Unix-millis time range used by chart blocks.
64 65 66 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 64 def time_frame @time_frame end |
#trace_id ⇒ Object
Trace identifier. Required for llmobs_trace blocks.
67 68 69 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 67 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.
71 72 73 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 71 def type @type end |
#url ⇒ Object
URL of the image. Required for image blocks.
74 75 76 |
# File 'lib/datadog_api_client/v2/models/llm_obs_content_block.rb', line 74 def url @url end |