Class: DatadogAPIClient::V2::AIGuardMessage

Inherits:
Object
  • Object
show all
Includes:
BaseGenericModel
Defined in:
lib/datadog_api_client/v2/models/ai_guard_message.rb

Overview

A message in the conversation. Content is required for user, system, developer, and tool messages, but may be omitted for assistant messages. For those non-assistant roles, a plain content string may be empty, but a multipart content array must contain at least one valid content part. Only assistant messages may contain tool calls, and tool call entries must not be null. Tool messages must include a non-empty tool_call_id; other message roles must not include a non-empty tool_call_id.

Instance Attribute Summary collapse

Method Summary

Methods included from BaseGenericModel

included

Instance Attribute Details

#additional_properties ⇒ Object

Returns the value of attribute additional_properties.



42
43
44
# File 'lib/datadog_api_client/v2/models/ai_guard_message.rb', line 42

def additional_properties
  @additional_properties
end

#content ⇒ Object

The content of a message, either a plain string or a list of OpenAI-style content parts.



31
32
33
# File 'lib/datadog_api_client/v2/models/ai_guard_message.rb', line 31

def content
  @content
end

#role ⇒ Object

The role of the message author in the conversation.



34
35
36
# File 'lib/datadog_api_client/v2/models/ai_guard_message.rb', line 34

def role
  @role
end

#tool_call_id ⇒ Object

The identifier of the tool call this message responds to, present on tool result messages.



37
38
39
# File 'lib/datadog_api_client/v2/models/ai_guard_message.rb', line 37

def tool_call_id
  @tool_call_id
end

#tool_calls ⇒ Object

The tool calls emitted by the assistant, present on assistant messages that call tools.



40
41
42
# File 'lib/datadog_api_client/v2/models/ai_guard_message.rb', line 40

def tool_calls
  @tool_calls
end