Class PromptMeta.Builder
java.lang.Object
com.langfuse.client.resources.prompts.types.PromptMeta.Builder
- All Implemented Interfaces:
PromptMeta._FinalStage,PromptMeta.LastConfigStage,PromptMeta.LastUpdatedAtStage,PromptMeta.NameStage,PromptMeta.TypeStage
- Enclosing class:
PromptMeta
public static final class PromptMeta.Builder
extends Object
implements PromptMeta.NameStage, PromptMeta.TypeStage, PromptMeta.LastUpdatedAtStage, PromptMeta.LastConfigStage, PromptMeta._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaddAllLabels(List<String> labels) addAllTags(List<String> tags) addAllVersions(List<Integer> versions) additionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) addVersions(Integer versions) build()from(PromptMeta other) lastConfig(Object lastConfig) Config object of the most recent prompt version that matches the filters (if any are provided)lastUpdatedAt(OffsetDateTime lastUpdatedAt) type(PromptType type) Indicates whether the prompt is a text or chat prompt.
-
Method Details
-
from
- Specified by:
fromin interfacePromptMeta.NameStage
-
name
- Specified by:
namein interfacePromptMeta.NameStage
-
type
Indicates whether the prompt is a text or chat prompt.
Indicates whether the prompt is a text or chat prompt.
- Specified by:
typein interfacePromptMeta.TypeStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
lastUpdatedAt
- Specified by:
lastUpdatedAtin interfacePromptMeta.LastUpdatedAtStage
-
lastConfig
Config object of the most recent prompt version that matches the filters (if any are provided)
Config object of the most recent prompt version that matches the filters (if any are provided)
- Specified by:
lastConfigin interfacePromptMeta.LastConfigStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addAllTags
- Specified by:
addAllTagsin interfacePromptMeta._FinalStage
-
addTags
- Specified by:
addTagsin interfacePromptMeta._FinalStage
-
tags
- Specified by:
tagsin interfacePromptMeta._FinalStage
-
addAllLabels
- Specified by:
addAllLabelsin interfacePromptMeta._FinalStage
-
addLabels
- Specified by:
addLabelsin interfacePromptMeta._FinalStage
-
labels
- Specified by:
labelsin interfacePromptMeta._FinalStage
-
addAllVersions
- Specified by:
addAllVersionsin interfacePromptMeta._FinalStage
-
addVersions
- Specified by:
addVersionsin interfacePromptMeta._FinalStage
-
versions
- Specified by:
versionsin interfacePromptMeta._FinalStage
-
build
- Specified by:
buildin interfacePromptMeta._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfacePromptMeta._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfacePromptMeta._FinalStage
-