@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LLMObsSpanMessage extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
JSON_PROPERTY_CONTENT |
static String |
JSON_PROPERTY_ID |
static String |
JSON_PROPERTY_ROLE |
static String |
JSON_PROPERTY_TOOL_CALLS |
static String |
JSON_PROPERTY_TOOL_RESULTS |
boolean |
unparsed |
| Constructor and Description |
|---|
LLMObsSpanMessage() |
| Modifier and Type | Method and Description |
|---|---|
LLMObsSpanMessage |
addToolCallsItem(LLMObsSpanToolCall toolCallsItem) |
LLMObsSpanMessage |
addToolResultsItem(LLMObsSpanToolResult toolResultsItem) |
LLMObsSpanMessage |
content(String content) |
boolean |
equals(Object o)
Return true if this LLMObsSpanMessage object is equal to o.
|
Map<String,Object> |
getAdditionalProperties()
Return the additional (undeclared) property.
|
Object |
getAdditionalProperty(String key)
Return the additional (undeclared) property with the specified name.
|
String |
getContent()
Text content of the message.
|
String |
getId()
Unique identifier of the message.
|
String |
getRole()
Role of the message sender (e.g., user, assistant, system).
|
List<LLMObsSpanToolCall> |
getToolCalls()
Tool calls made in this message.
|
List<LLMObsSpanToolResult> |
getToolResults()
Tool results returned in this message.
|
int |
hashCode() |
LLMObsSpanMessage |
id(String id) |
LLMObsSpanMessage |
putAdditionalProperty(String key,
Object value)
Set the additional (undeclared) property with the specified name and value.
|
LLMObsSpanMessage |
role(String role) |
void |
setContent(String content) |
void |
setId(String id) |
void |
setRole(String role) |
void |
setToolCalls(List<LLMObsSpanToolCall> toolCalls) |
void |
setToolResults(List<LLMObsSpanToolResult> toolResults) |
LLMObsSpanMessage |
toolCalls(List<LLMObsSpanToolCall> toolCalls) |
LLMObsSpanMessage |
toolResults(List<LLMObsSpanToolResult> toolResults) |
String |
toString() |
public boolean unparsed
public static final String JSON_PROPERTY_CONTENT
public static final String JSON_PROPERTY_ID
public static final String JSON_PROPERTY_ROLE
public static final String JSON_PROPERTY_TOOL_CALLS
public static final String JSON_PROPERTY_TOOL_RESULTS
public LLMObsSpanMessage content(String content)
@Nullable public String getContent()
public void setContent(String content)
public LLMObsSpanMessage id(String id)
@Nullable public String getId()
public void setId(String id)
public LLMObsSpanMessage role(String role)
@Nullable public String getRole()
public void setRole(String role)
public LLMObsSpanMessage toolCalls(List<LLMObsSpanToolCall> toolCalls)
public LLMObsSpanMessage addToolCallsItem(LLMObsSpanToolCall toolCallsItem)
@Nullable public List<LLMObsSpanToolCall> getToolCalls()
public void setToolCalls(List<LLMObsSpanToolCall> toolCalls)
public LLMObsSpanMessage toolResults(List<LLMObsSpanToolResult> toolResults)
public LLMObsSpanMessage addToolResultsItem(LLMObsSpanToolResult toolResultsItem)
@Nullable public List<LLMObsSpanToolResult> getToolResults()
public void setToolResults(List<LLMObsSpanToolResult> toolResults)
public LLMObsSpanMessage putAdditionalProperty(String key, Object value)
key - The arbitrary key to setvalue - The associated valuepublic Map<String,Object> getAdditionalProperties()
public Object getAdditionalProperty(String key)
key - The arbitrary key to getpublic boolean equals(Object o)
Copyright © 2026. All rights reserved.