Class LLMObsPromptSDKDataAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LLMObsPromptSDKDataAttributes extends Object
Attributes of a flattened prompt version returned for SDK consumption. Exactly one of template and chat_template is returned. Empty config is omitted when configuration authoring is disabled for the organization. Non-empty saved configuration is always returned.
  • Field Details

  • Constructor Details

    • LLMObsPromptSDKDataAttributes

      public LLMObsPromptSDKDataAttributes()
  • Method Details

    • chatTemplate

      public LLMObsPromptSDKDataAttributes chatTemplate(List<LLMObsPromptChatMessage> chatTemplate)
    • addChatTemplateItem

      public LLMObsPromptSDKDataAttributes addChatTemplateItem(LLMObsPromptChatMessage chatTemplateItem)
    • getChatTemplate

      @Nullable public List<LLMObsPromptChatMessage> getChatTemplate()
      Chat template for this prompt version, as a list of role and content messages. Omitted for text templates.
      Returns:
      chatTemplate
    • setChatTemplate

      public void setChatTemplate(List<LLMObsPromptChatMessage> chatTemplate)
    • config

    • putConfigItem

      public LLMObsPromptSDKDataAttributes putConfigItem(String key, Object configItem)
    • getConfig

      @Nullable public Map<String,Object> getConfig()
      Versioned prompt configuration is in Preview. To request access, contact Datadog Support or your Customer Success Manager. Customer-owned configuration delivered with a prompt version. Datadog stores and returns the object without interpolating it, validating provider-specific keys, or applying it to model calls. Do not include secrets.
      Returns:
      config
    • setConfig

      public void setConfig(Map<String,Object> config)
    • labels

      public LLMObsPromptSDKDataAttributes labels(List<String> labels)
    • addLabelsItem

      public LLMObsPromptSDKDataAttributes addLabelsItem(String labelsItem)
    • getLabels

      @Deprecated @Nullable public List<String> getLabels()
      Deprecated.
      Labels attached to the selected version.
      Returns:
      labels
    • setLabels

      @Deprecated public void setLabels(List<String> labels)
      Deprecated.
    • promptId

      public LLMObsPromptSDKDataAttributes promptId(String promptId)
    • getPromptId

      @Nullable public String getPromptId()
      Customer-provided identifier of the prompt.
      Returns:
      promptId
    • setPromptId

      public void setPromptId(String promptId)
    • promptVersionUuid

      public LLMObsPromptSDKDataAttributes promptVersionUuid(String promptVersionUuid)
    • getPromptVersionUuid

      @Nullable public String getPromptVersionUuid()
      Unique identifier of this prompt version.
      Returns:
      promptVersionUuid
    • setPromptVersionUuid

      public void setPromptVersionUuid(String promptVersionUuid)
    • template

      public LLMObsPromptSDKDataAttributes template(String template)
    • getTemplate

      @Nullable public String getTemplate()
      Text template for this prompt version. Omitted for chat templates.
      Returns:
      template
    • setTemplate

      public void setTemplate(String template)
    • version

      public LLMObsPromptSDKDataAttributes version(String version)
    • getVersion

      @Nullable public String getVersion()
      Version identifier for this prompt version. This is the sequential version number unless a user-supplied version identifier was set, in which case that identifier is used instead.
      Returns:
      version
    • setVersion

      public void setVersion(String version)
    • putAdditionalProperty

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