Package com.datadog.api.client.v2.model
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 Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionLLMObsCreatePromptDataAttributes(String promptId, LLMObsPromptTemplate template) -
Method Summary
Modifier and TypeMethodDescriptionaddEnvIdsItem(String envIdsItem) addLabelsItem(LLMObsPromptVersionLabel labelsItem) description(String description) booleanReturn true if this LLMObsCreatePromptDataAttributes 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 the prompt.Optional feature-flag environment UUIDs the service attempts to enable and configure to use the first version as their default after creation.Deprecated.Customer-provided identifier for the new prompt.A text template, a list of chat messages, or an authored chat object.getTitle()Optional title of the prompt.Optional user-supplied version identifier for the first 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.voidsetPromptId(String promptId) voidsetTemplate(LLMObsPromptTemplate template) voidvoidsetUserVersion(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_PROMPT_ID
- See Also:
-
JSON_PROPERTY_TEMPLATE
- See Also:
-
JSON_PROPERTY_TITLE
- See Also:
-
JSON_PROPERTY_USER_VERSION
- See Also:
-
-
Constructor Details
-
LLMObsCreatePromptDataAttributes
public LLMObsCreatePromptDataAttributes() -
LLMObsCreatePromptDataAttributes
-
-
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 the prompt.- Returns:
- description
-
setDescription
-
envIds
-
addEnvIdsItem
-
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
-
labels
-
addLabelsItem
-
getLabels
Deprecated.Optional labels to attach to the first version. Do not use this attribute for new integrations.- Returns:
- labels
-
setLabels
Deprecated. -
promptId
-
getPromptId
Customer-provided identifier for the new prompt.- Returns:
- promptId
-
setPromptId
-
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
-
title
-
getTitle
Optional title of the prompt.- Returns:
- title
-
setTitle
-
userVersion
-
getUserVersion
Optional user-supplied version identifier for the first 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:
- LLMObsCreatePromptDataAttributes
-
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 LLMObsCreatePromptDataAttributes object is equal to o. -
hashCode
public int hashCode() -
toString
-