Class TextPrompt.Builder
java.lang.Object
com.langfuse.client.resources.prompts.types.TextPrompt.Builder
- All Implemented Interfaces:
TextPrompt._FinalStage,TextPrompt.ConfigStage,TextPrompt.NameStage,TextPrompt.PromptStage,TextPrompt.VersionStage
- Enclosing class:
TextPrompt
public static final class TextPrompt.Builder
extends Object
implements TextPrompt.NameStage, TextPrompt.VersionStage, TextPrompt.ConfigStage, TextPrompt.PromptStage, TextPrompt._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(TextPrompt 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 interfaceTextPrompt.NameStage
-
name
- Specified by:
namein interfaceTextPrompt.NameStage
-
version
- Specified by:
versionin interfaceTextPrompt.VersionStage
-
config
- Specified by:
configin interfaceTextPrompt.ConfigStage
-
prompt
- Specified by:
promptin interfaceTextPrompt.PromptStage
-
resolutionGraph
The dependency resolution graph for the current prompt. Null if prompt has no dependencies.
- Specified by:
resolutionGraphin interfaceTextPrompt._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 interfaceTextPrompt._FinalStage
-
commitMessage
Commit message for this prompt version.
- Specified by:
commitMessagein interfaceTextPrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
commitMessage
Commit message for this prompt version.
- Specified by:
commitMessagein interfaceTextPrompt._FinalStage
-
addAllTags
List of tags. Used to filter via UI and API. The same across versions of a prompt.
- Specified by:
addAllTagsin interfaceTextPrompt._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 interfaceTextPrompt._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 interfaceTextPrompt._FinalStage
-
addAllLabels
List of deployment labels of this prompt version.
- Specified by:
addAllLabelsin interfaceTextPrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
addLabels
List of deployment labels of this prompt version.
- Specified by:
addLabelsin interfaceTextPrompt._FinalStage- Returns:
- Reference to
thisso that method calls can be chained together.
-
labels
List of deployment labels of this prompt version.
- Specified by:
labelsin interfaceTextPrompt._FinalStage
-
build
- Specified by:
buildin interfaceTextPrompt._FinalStage
-
additionalProperty
- Specified by:
additionalPropertyin interfaceTextPrompt._FinalStage
-
additionalProperties
- Specified by:
additionalPropertiesin interfaceTextPrompt._FinalStage
-