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 Details

  • Constructor Details

    • LLMObsSpanMessage

      public LLMObsSpanMessage()
  • Method Details

    • content

      public LLMObsSpanMessage content(String content)
    • getContent

      @Nullable public String getContent()
      Text content of the message.
      Returns:
      content
    • setContent

      public void setContent(String content)
    • id

      public LLMObsSpanMessage id(String id)
    • getId

      @Nullable public String getId()
      Unique identifier of the message.
      Returns:
      id
    • setId

      public void setId(String id)
    • role

      public LLMObsSpanMessage role(String role)
    • getRole

      @Nullable public String getRole()
      Role of the message sender (e.g., user, assistant, system).
      Returns:
      role
    • setRole

      public void setRole(String role)
    • toolCalls

      public LLMObsSpanMessage toolCalls(List<LLMObsSpanToolCall> toolCalls)
    • addToolCallsItem

      public LLMObsSpanMessage addToolCallsItem(LLMObsSpanToolCall toolCallsItem)
    • getToolCalls

      @Nullable public List<LLMObsSpanToolCall> getToolCalls()
      Tool calls made in this message.
      Returns:
      toolCalls
    • setToolCalls

      public void setToolCalls(List<LLMObsSpanToolCall> toolCalls)
    • toolResults

      public LLMObsSpanMessage toolResults(List<LLMObsSpanToolResult> toolResults)
    • addToolResultsItem

      public LLMObsSpanMessage addToolResultsItem(LLMObsSpanToolResult toolResultsItem)
    • getToolResults

      @Nullable public List<LLMObsSpanToolResult> getToolResults()
      Tool results returned in this message.
      Returns:
      toolResults
    • setToolResults

      public void setToolResults(List<LLMObsSpanToolResult> toolResults)
    • putAdditionalProperty

      public LLMObsSpanMessage putAdditionalProperty(String key, Object value)
      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 set
      value - The associated value
      Returns:
      LLMObsSpanMessage
    • getAdditionalProperties

      public Map<String,Object> getAdditionalProperties()
      Return the additional (undeclared) property.
      Returns:
      The additional properties
    • getAdditionalProperty

      public Object getAdditionalProperty(String key)
      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

      public boolean equals(Object o)
      Return true if this LLMObsSpanMessage object is equal to o.
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object