Class LLMObsAnnotationLabelValue

java.lang.Object
com.datadog.api.client.v2.model.LLMObsAnnotationLabelValue

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LLMObsAnnotationLabelValue extends Object
A single label value entry in an annotation. The value type must match the label schema type: - score: a number within the schema min/max range (integer if is_integer is true). - categorical: a string that is one of the schema values. - boolean: true or false. - text: any non-empty string.
  • Field Details

  • Constructor Details

    • LLMObsAnnotationLabelValue

      public LLMObsAnnotationLabelValue()
    • LLMObsAnnotationLabelValue

      public LLMObsAnnotationLabelValue(String labelSchemaId, LLMObsAnnotationLabelValueValue value)
  • Method Details

    • assessment

    • getAssessment

      @Nullable public LLMObsAnnotationAssessment getAssessment()
      Assessment result for a label value.
      Returns:
      assessment
    • setAssessment

      public void setAssessment(LLMObsAnnotationAssessment assessment)
    • labelSchemaId

      public LLMObsAnnotationLabelValue labelSchemaId(String labelSchemaId)
    • getLabelSchemaId

      public String getLabelSchemaId()
      ID of the label schema this value corresponds to.
      Returns:
      labelSchemaId
    • setLabelSchemaId

      public void setLabelSchemaId(String labelSchemaId)
    • reasoning

      public LLMObsAnnotationLabelValue reasoning(String reasoning)
    • getReasoning

      @Nullable public String getReasoning()
      Free text reasoning for this label value.
      Returns:
      reasoning
    • setReasoning

      public void setReasoning(String reasoning)
    • value

    • getValue

      The value for this label. Must comply with the label schema type constraints.
      Returns:
      value
    • setValue

      public void setValue(LLMObsAnnotationLabelValueValue value)
    • putAdditionalProperty

      public LLMObsAnnotationLabelValue 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:
      LLMObsAnnotationLabelValue
    • 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 LLMObsAnnotationLabelValue 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