Class: DatadogAPIClient::V2::LLMObsContentBlock

Inherits:
Object
  • Object
show all
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: 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.
  • frontend: code is required and must be a non-empty string; label is optional.

height, when set, must be positive.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_propertiesObject

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

#altObject

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

#codeObject

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

#contentObject

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

#heightObject

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_typeObject

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

#labelObject

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

#levelObject

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_defObject

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_frameObject

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_idObject

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

#typeObject

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

#urlObject

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