Package com.datadog.api.client.v2.model
Class LLMObsSpanMessage
java.lang.Object
com.datadog.api.client.v2.model.LLMObsSpanMessage
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LLMObsSpanMessage
extends Object
A single message in a span input or output.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddToolCallsItem(LLMObsSpanToolCall toolCallsItem) addToolResultsItem(LLMObsSpanToolResult toolResultsItem) booleanReturn true if this LLMObsSpanMessage object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Text content of the message.getId()Unique identifier of the message.getRole()Role of the message sender (e.g., user, assistant, system).Tool calls made in this message.Tool results returned in this message.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetContent(String content) voidvoidvoidsetToolCalls(List<LLMObsSpanToolCall> toolCalls) voidsetToolResults(List<LLMObsSpanToolResult> toolResults) toolCalls(List<LLMObsSpanToolCall> toolCalls) toolResults(List<LLMObsSpanToolResult> toolResults) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CONTENT
- See Also:
-
JSON_PROPERTY_ID
- See Also:
-
JSON_PROPERTY_ROLE
- See Also:
-
JSON_PROPERTY_TOOL_CALLS
- See Also:
-
JSON_PROPERTY_TOOL_RESULTS
- See Also:
-
-
Constructor Details
-
LLMObsSpanMessage
public LLMObsSpanMessage()
-
-
Method Details
-
content
-
getContent
Text content of the message.- Returns:
- content
-
setContent
-
id
-
getId
Unique identifier of the message.- Returns:
- id
-
setId
-
role
-
getRole
Role of the message sender (e.g., user, assistant, system).- Returns:
- role
-
setRole
-
toolCalls
-
addToolCallsItem
-
getToolCalls
Tool calls made in this message.- Returns:
- toolCalls
-
setToolCalls
-
toolResults
-
addToolResultsItem
-
getToolResults
Tool results returned in this message.- Returns:
- toolResults
-
setToolResults
-
putAdditionalProperty
Set the additional (undeclared) property with the specified name and value. If the property does not already exist, create it otherwise replace it.- Parameters:
key- The arbitrary key to setvalue- The associated value- Returns:
- LLMObsSpanMessage
-
getAdditionalProperties
Return the additional (undeclared) property.- Returns:
- The additional properties
-
getAdditionalProperty
Return the additional (undeclared) property with the specified name.- Parameters:
key- The arbitrary key to get- Returns:
- The specific additional property for the given key
-
equals
Return true if this LLMObsSpanMessage object is equal to o. -
hashCode
public int hashCode() -
toString
-