Class LLMObsCreatePromptDataAttributes

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

@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LLMObsCreatePromptDataAttributes extends Object
Attributes for creating an Agent Observability prompt and its first version. prompt_id and template are required; all other attributes are optional. If config is omitted, the first version stores an empty object. Configuration authoring must be enabled for your organization to supply config. Otherwise, supplying it, including an empty object, returns HTTP 403.
  • Field Details

  • Constructor Details

    • LLMObsCreatePromptDataAttributes

      public LLMObsCreatePromptDataAttributes()
    • LLMObsCreatePromptDataAttributes

      public LLMObsCreatePromptDataAttributes(String promptId, LLMObsPromptTemplate template)
  • Method Details

    • config

    • putConfigItem

      public LLMObsCreatePromptDataAttributes 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)
    • description

      public LLMObsCreatePromptDataAttributes description(String description)
    • getDescription

      @Nullable public String getDescription()
      Optional description of the prompt.
      Returns:
      description
    • setDescription

      public void setDescription(String description)
    • envIds

      public LLMObsCreatePromptDataAttributes envIds(List<String> envIds)
    • addEnvIdsItem

      public LLMObsCreatePromptDataAttributes addEnvIdsItem(String envIdsItem)
    • getEnvIds

      @Nullable public List<String> getEnvIds()
      Optional feature-flag environment UUIDs the service attempts to enable and configure to use the first version as their default after creation.
      Returns:
      envIds
    • setEnvIds

      public void setEnvIds(List<String> envIds)
    • labels

    • addLabelsItem

    • getLabels

      @Deprecated @Nullable public List<LLMObsPromptVersionLabel> getLabels()
      Deprecated.
      Optional labels to attach to the first version. Do not use this attribute for new integrations.
      Returns:
      labels
    • setLabels

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

      public LLMObsCreatePromptDataAttributes promptId(String promptId)
    • getPromptId

      public String getPromptId()
      Customer-provided identifier for the new prompt.
      Returns:
      promptId
    • setPromptId

      public void setPromptId(String promptId)
    • template

    • getTemplate

      public LLMObsPromptTemplate getTemplate()
      A text template, a list of chat messages, or an authored chat object. Text can include an exact prompt version with {{>prompt-id version=N}}; other text, including {{>...}} sequences without a version, remains literal. Use an authored chat object when including prompts as chat messages. Preview: Prompt composition is available in Preview. To request access, contact Datadog Support or your Customer Success Manager. Without access, inline references remain literal text and structured includes are unsupported. Previously compiled prompt versions remain available for execution.
      Returns:
      template
    • setTemplate

      public void setTemplate(LLMObsPromptTemplate template)
    • title

    • getTitle

      @Nullable public String getTitle()
      Optional title of the prompt.
      Returns:
      title
    • setTitle

      public void setTitle(String title)
    • userVersion

      public LLMObsCreatePromptDataAttributes userVersion(String userVersion)
    • getUserVersion

      @Nullable public String getUserVersion()
      Optional user-supplied version identifier for the first version.
      Returns:
      userVersion
    • setUserVersion

      public void setUserVersion(String userVersion)
    • putAdditionalProperty

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