Package com.datadog.api.client.v2.model
Class LLMObsInferenceMessage
java.lang.Object
com.datadog.api.client.v2.model.LLMObsInferenceMessage
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LLMObsInferenceMessage
extends Object
A single message in an LLM inference conversation.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddContentsItem(LLMObsInferenceContent contentsItem) addToolCallsItem(LLMObsInferenceToolCall toolCallsItem) addToolResultsItem(LLMObsInferenceToolResult toolResultsItem) contents(List<LLMObsInferenceContent> contents) booleanReturn true if this LLMObsInferenceMessage object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Plain text content of the message.List of structured content blocks in a message.getId()Unique identifier for the message.getRole()The role of the message author.List of tool calls in a message.List of tool results in a message.inthashCode()putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.voidsetContent(String content) voidsetContents(List<LLMObsInferenceContent> contents) voidvoidvoidsetToolCalls(List<LLMObsInferenceToolCall> toolCalls) voidsetToolResults(List<LLMObsInferenceToolResult> toolResults) toolCalls(List<LLMObsInferenceToolCall> toolCalls) toolResults(List<LLMObsInferenceToolResult> toolResults) toString()
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CONTENT
- See Also:
-
JSON_PROPERTY_CONTENTS
- 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
-
LLMObsInferenceMessage
public LLMObsInferenceMessage()
-
-
Method Details
-
content
-
getContent
Plain text content of the message.- Returns:
- content
-
setContent
-
contents
-
addContentsItem
-
getContents
List of structured content blocks in a message.- Returns:
- contents
-
setContents
-
id
-
getId
Unique identifier for the message.- Returns:
- id
-
setId
-
role
-
getRole
The role of the message author.- Returns:
- role
-
setRole
-
toolCalls
-
addToolCallsItem
-
getToolCalls
List of tool calls in a message.- Returns:
- toolCalls
-
setToolCalls
-
toolResults
-
addToolResultsItem
-
getToolResults
List of tool results in a 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:
- LLMObsInferenceMessage
-
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 LLMObsInferenceMessage object is equal to o. -
hashCode
public int hashCode() -
toString
-