Package com.datadog.api.client.v2.model
Class LLMObsCreatePromptVersionDataAttributes
java.lang.Object
com.datadog.api.client.v2.model.LLMObsCreatePromptVersionDataAttributes
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class LLMObsCreatePromptVersionDataAttributes
extends Object
Attributes for creating a new version of an Agent Observability prompt.
template is
required; all other attributes are optional. If config is omitted, the latest
version's configuration is carried forward. An explicit empty object clears it. Configuration
authoring must be enabled for your organization to supply config. Otherwise,
supplying it, including an empty object, returns HTTP 403. Omitting config still
carries forward the latest configuration.-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionaddEnvIdsItem(String envIdsItem) addLabelsItem(LLMObsPromptVersionLabel labelsItem) description(String description) booleanReturn true if this LLMObsCreatePromptVersionDataAttributes object is equal to o.Return the additional (undeclared) property.Return the additional (undeclared) property with the specified name.Versioned prompt configuration is in Preview.Optional description of this version.Optional feature-flag environment UUIDs the service attempts to enable and configure to use this version as their default after creation.Deprecated.A text template, a list of chat messages, or an authored chat object.Optional user-supplied version identifier for this version.inthashCode()labels(List<LLMObsPromptVersionLabel> labels) putAdditionalProperty(String key, Object value) Set the additional (undeclared) property with the specified name and value.putConfigItem(String key, Object configItem) voidvoidsetDescription(String description) voidvoidsetLabels(List<LLMObsPromptVersionLabel> labels) Deprecated.voidsetTemplate(LLMObsPromptTemplate template) voidsetUserVersion(String userVersion) template(LLMObsPromptTemplate template) toString()userVersion(String userVersion)
-
Field Details
-
unparsed
public boolean unparsed -
JSON_PROPERTY_CONFIG
- See Also:
-
JSON_PROPERTY_DESCRIPTION
- See Also:
-
JSON_PROPERTY_ENV_IDS
- See Also:
-
JSON_PROPERTY_LABELS
- See Also:
-
JSON_PROPERTY_TEMPLATE
- See Also:
-
JSON_PROPERTY_USER_VERSION
- See Also:
-
-
Constructor Details
-
LLMObsCreatePromptVersionDataAttributes
public LLMObsCreatePromptVersionDataAttributes() -
LLMObsCreatePromptVersionDataAttributes
-
-
Method Details
-
config
-
putConfigItem
-
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
-
description
-
getDescription
Optional description of this version.- Returns:
- description
-
setDescription
-
envIds
-
addEnvIdsItem
-
getEnvIds
Optional feature-flag environment UUIDs the service attempts to enable and configure to use this version as their default after creation.- Returns:
- envIds
-
setEnvIds
-
labels
-
addLabelsItem
-
getLabels
Deprecated.Optional labels to attach to this version. Do not use this attribute for new integrations.- Returns:
- labels
-
setLabels
Deprecated. -
template
-
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
-
userVersion
-
getUserVersion
Optional user-supplied version identifier for this version.- Returns:
- userVersion
-
setUserVersion
-
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:
- LLMObsCreatePromptVersionDataAttributes
-
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 LLMObsCreatePromptVersionDataAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-