Class: DatadogAPIClient::V2::AIGuardContentPart
- Inherits:
-
Object
- Object
- DatadogAPIClient::V2::AIGuardContentPart
- Includes:
- BaseGenericModel
- Defined in:
- lib/datadog_api_client/v2/models/ai_guard_content_part.rb
Overview
One part of multipart message content, following the OpenAI content part
format. For user, system, developer, and tool messages, a text part must
include non-empty text, and an image part must include image_url with
a non-empty url. These content-part checks do not apply to assistant messages.
Instance Attribute Summary collapse
-
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
-
#image_url ⇒ Object
An image referenced by URL in a message content part.
-
#text ⇒ Object
The text content, required and non-empty when
typeistextin a user, system, developer, or tool message. -
#type ⇒ Object
readonly
The type of the content part.
Method Summary
Methods included from BaseGenericModel
Instance Attribute Details
#additional_properties ⇒ Object
Returns the value of attribute additional_properties.
36 37 38 |
# File 'lib/datadog_api_client/v2/models/ai_guard_content_part.rb', line 36 def additional_properties @additional_properties end |
#image_url ⇒ Object
An image referenced by URL in a message content part.
28 29 30 |
# File 'lib/datadog_api_client/v2/models/ai_guard_content_part.rb', line 28 def image_url @image_url end |
#text ⇒ Object
The text content, required and non-empty when type is text in a user, system, developer, or tool message.
31 32 33 |
# File 'lib/datadog_api_client/v2/models/ai_guard_content_part.rb', line 31 def text @text end |
#type ⇒ Object
The type of the content part.
34 35 36 |
# File 'lib/datadog_api_client/v2/models/ai_guard_content_part.rb', line 34 def type @type end |