Class BasePrompt.Builder
java.lang.Object
com.langfuse.client.resources.prompts.types.BasePrompt.Builder
- All Implemented Interfaces:
BasePrompt._FinalStage,BasePrompt.ConfigStage,BasePrompt.NameStage,BasePrompt.VersionStage
- Enclosing class:
BasePrompt
public static final class BasePrompt.Builder
extends Object
implements BasePrompt.NameStage, BasePrompt.VersionStage, BasePrompt.ConfigStage, BasePrompt._FinalStage
-
Method Summary
Modifier and TypeMethodDescriptionaddAllLabels(List<String> labels) List of deployment labels of this prompt version.addAllTags(List<String> tags) List of tags.additionalProperties(Map<String, Object> additionalProperties) additionalProperty(String key, Object value) List of deployment labels of this prompt version.List of tags.build()commitMessage(String commitMessage) Commit message for this prompt version.commitMessage(Optional<String> commitMessage) Commit message for this prompt version.from(BasePrompt other) List of deployment labels of this prompt version.resolutionGraph(Map<String, Object> resolutionGraph) The dependency resolution graph for the current prompt.resolutionGraph(Optional<Map<String, Object>> resolutionGraph) The dependency resolution graph for the current prompt.List of tags.version(int version)
-
Method Details
-
from
- Specified by:
fromin interfaceBasePrompt.NameStage
-
name
- Specified by:
namein interfaceBasePrompt.NameStage
-
version
- Specified by:
versionin interfaceBasePrompt.VersionStage
-
config
- Specified by:
configin interfaceBasePrompt.ConfigStage
-
resolutionGraph
The dependency resolution graph for the current prompt. Null if prompt has no dependencies.
- Specified by:
resolutionGraphin interfaceBasePrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
resolutionGraph
The dependency resolution graph for the current prompt. Null if prompt has no dependencies.
- Specified by:
resolutionGraphin interfaceBasePrompt._FinalStage
-
commitMessage
Commit message for this prompt version.
- Specified by:
commitMessagein interfaceBasePrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
commitMessage
Commit message for this prompt version.
- Specified by:
commitMessagein interfaceBasePrompt._FinalStage
-
addAllTags
List of tags. Used to filter via UI and API. The same across versions of a prompt.
- Specified by:
addAllTagsin interfaceBasePrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addTags
List of tags. Used to filter via UI and API. The same across versions of a prompt.
- Specified by:
addTagsin interfaceBasePrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
tags
List of tags. Used to filter via UI and API. The same across versions of a prompt.
- Specified by:
tagsin interfaceBasePrompt._FinalStage
-
addAllLabels
List of deployment labels of this prompt version.
- Specified by:
addAllLabelsin interfaceBasePrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addLabels
List of deployment labels of this prompt version.
- Specified by:
addLabelsin interfaceBasePrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
labels
List of deployment labels of this prompt version.
- Specified by:
labelsin interfaceBasePrompt._FinalStage
-
build
- Specified by:
buildin interfaceBasePrompt._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceBasePrompt._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceBasePrompt._FinalStage
-